1.

Which of these class must be used to send a datagram packets over a connection?(a) InetAdress(b) DatagramPacket(c) DatagramSocket(d) All of the mentionedThe question was asked in an interview.Question is taken from Networking in portion Serialization & Networking of Java

Answer»

The correct option is (d) All of the mentioned

Explanation: By using 5 CLASSES we can send and receive data between CLIENT and server, these are INETADDRESS, Socket, ServerSocket, DatagramSocket, and DatagramPacket.



Discussion

No Comment Found

Related InterviewSolutions