-
What does bind() method of ServerSocket offer?
-
- binds the server and client browser
- binds the server socket to the JVM
- binds the port to the JVM
- binds the serversocket to a specific address (IP Address and port)
- 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.