1.

What does bind() method of ServerSocket offer?(a) binds the serversocket to a specific address (IP Address and port)(b) binds the server and client browser(c) binds the server socket to the JVM(d) binds the port to the JVMI got this question in a national level competition.Question is taken from Client and Server in portion Java Server Technologies & Servlet of Java

Answer»

The correct choice is (a) BINDS the serversocket to a specific address (IP Address and port)

EXPLANATION: 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.



Discussion

No Comment Found

Related InterviewSolutions