Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 1.2 KB

README.md

File metadata and controls

30 lines (19 loc) · 1.2 KB

Java

Networking Problem Statement 1:

Write a java program to get a number from the text field using AWT and send the obtained data to the destination server using TCP if and only if the number is a prime number else don't send.

Solution:

Using Connection - Oriented Socket Programming (TCP Protocol)

Output:

When the number is prime!

When the number is not prime!

Networking Problem Statement 2:

Write a java program to get a number from the text field using AWT and send the obtained data to the destination server using UDP if and only if the number is a armstrong number else don't send.

Solution:

Using Connection - Less Socket Programming (UDP Protocol)

Output:

When the number is armstrong!

When the number is not armstrong!