Question 3 - (2 Marks) State whether the following statements are true or false. If false, explain why. Each question is worth 0.5 Mark. a) Socket classes are used to represent the connection between a client program and a server program. b) To connect a

匿名用户 最后更新于 2021-11-29 17:10 计算机类Computing


Question 3 - (2 Marks) State whether the following statements are true or false. If false, explain why. Each question is worth 0.5 Mark. a) Socket classes are used to represent the connection between a client program and a server program. b) To connect a client to a server, the server waits on any port number to accept clients' requests for connections. c) After accepting a connection request, the server uses the same port at which it accepts connection requests to transfer data with the client. d) ServerSocket server = new ServerSocket( 5000, 5); - this creates a socket waiting on port number 5000 that can accept up to 5 clients during its life time.

已邀请: