Question 1
When a client requests connection to a server that has not yet started, ________.
◦ java.net.BindException occurs
◦ java.net.ConnectionException occurs
◦ the client encounters a fatal error and must be terminated
◦ the client is blocked until the server is started
Question 2
To connect to a server running on the same machine with the client, which of the following can be used for the hostname?
◦ "127.0.0.1"
◦ InetAddress.getLocalHost(),
◦ "127.127.127.1".
◦ "localhost"