Google News
logo
Networking - Quiz(MCQ)
Which classes are used for connection-less socket programming?
A)
Server Socket
B)
Datagram Packet
C)
Datagram Socket
D)
Both Datagram Socket & Datagram Packet

Correct Answer :   Both Datagram Socket & Datagram Packet


Explanation : Datagram is basically some information travelling between the sender and the receiver, but there is no guarantee of its content, arrival or arrival time. Datagram Socket, Datagram Packet are used for connection-less socket programming, while Server Socket is used for connection-oriented socket programming.

Advertisement