Home » JAVA Programming » Networking » Question
  1. What does bind() method of ServerSocket offer?
    1. binds the server and client browser
    2. binds the server socket to the JVM
    3. binds the port to the JVM
    4. binds the serversocket to a specific address (IP Address and port)
    5. None of these
Correct Option: D

bind() binds the server socket to a specific address (IP Address and port). If address is null, the system will pick an ephemeral port and valid local address to bind socket.



Your comments will be displayed only after manual approval.