Which classes are used for connection-less socket programming?

Which classes are used for connection-less socket programming? Correct Answer Both Datagram Socket & Datagram Packet

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.

Related Questions

Which constructor of Datagram Socket class is used to create a datagram socket and binds it with the given Port Number?