A. 抛出java.net.BindException异常 B. 服务器创建成功 C. 服务器被阻塞,直到端口可用 D. 服务器遇到致命错误,必须终止
A. 无论端口是否正在使用,客户端都可以连接到服务器。 B. 抛出java.net.BindException异常 C. 客户端被阻塞,直到端口可用 D. 客户端遇到致命错误,必须终止
A. Socket s = new Socket(ServerName, port); B. Socket s = serverSocket.accept() C. Socket s = serverSocket.getSocket() D. Socket s = new Socket(ServerName);
A. Socket s = new Socket(ServerName, port); B. Socket s = serverSocket.accept(); C. Socket s = serverSocket.getSocket(); D. Socket s = new Socket(ServerName);
A. 抛出java.net.BindException异常 B. 抛出java.net.ConnectionException异常 C. 客户端被阻止,直到服务器启动 D. 客户端遇到致命错误,必须终止
A. ServerSocket B. Socket C. InetAddress D. Connection
A. socket.InetAddress(); B. socket.getInetAddress(); C. socket.obtainInetAddress(); D. socket.retrieveInetAddress();
A. getIP() B. getIPAddress() C. getHostAddress() D. getAddress()
A. one B. two C. ten D. 无限数量
A. "localhost" B. "127.0.0.1" C. InetAddress.getLocalHost() D. "127.127.127.1".