DatagramSocket constructor of DatagramSocket class is used to create datagram socket- Java
Q. Which constructor of DatagramSocket class is used to creates a datagram socket and binds it with the given Port Number?- Published on 15 Jul 15a. DatagramSocket(int port)
b. DatagramSocket(int port, InetAddress address)
c. DatagramSocket()
d. None of the above
ANSWER: DatagramSocket(int port, InetAddress address)