The DatagramSocket class is used to create sockets____________________
Answers
Answered by
13
The Datagram socket class is used to create sockets'and blinds it with the specified port number and host addresses'
Answered by
0
The Datagram Socket class creates sockets and binds them to the given port number.
How a datagram socket creates sockets and gives a port number:
- A datagram socket (Integer port, Integer address) is used to create a socket datagram.
- It is used to create connectionless communication between the server system and the client system.
- Sockets are most commonly used to interact between the client and the server.
- On binding the datagram socket with the port number we can avoid assigning an ephemeral port number that is assigned to the socket.
Similar questions