Skip to content

varshakr1298/Java

Repository files navigation

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!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published