1.

Which classes are used for connection-less socket programming?(a) Datagram Socket(b) Datagram Packet(c) Both Datagram Socket & Datagram Packet(d) Server SocketI had been asked this question in a job interview.The query is from Socket Programming topic in portion Networking of Computer Network

Answer»

Correct option is (c) 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.



Discussion

No Comment Found

Related InterviewSolutions