Which of these class must be used to send a datatgram packets over a connection?
A. InetAdress
B. DatagramPacket
C. DatagramSocket
D. All of the mentioned
Answer:A
Which of these class must be used to send a datatgram packets over a connection?
A. InetAdress B. DatagramPacket C. DatagramSocket 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.