In server socket programming, which line correctly binds the server to port 5000?
new ServerSocket(5000);
ServerSocket.bind(5000);
ServerSocket.connect(5000);
ServerSocket.listen(5000);
This question is part of this quiz :
Java Sockets and Server Communication