Java Reference
In-Depth Information
Answers to Review Questions
1.
Transmission Control Protocol (TCP) and User Datagram Protocol (UDP).
2.
True. TCP is a “live” connection between two computers.
3.
False. UDP does not guarantee delivery of packets.
4.
java.net.ServerSocket and java.net.Socket.
5.
java.net.DatagramSocket and java.net.DatagramPacket.
6.
False. A port can be bound by only one application at a time.
7.
True. However, port 80 is the port used by most Web servers, so it isn't a good idea to
use port 80 unless you are developing a Web server application.
8.
When a client connects, or when the server socket times out.
9.
java.net.Socket.
10.
False. The ServerSocket is using port 3000; the socket for the client uses an arbitrary
port for communicating with that client.
11.
False. If that statement is successful, then a connection is made with the server and no
further steps need to be taken. The two computers are ready to begin communication.
12.
Secure Sockets Layer.
13.
javax.net.ssl.SSLServerSocketFactory and javax.net.ssl.SSLServerSocket.
14.
javax.net.ssl.SSLSocketFactory and javax.net.ssl.SSLSocket.
15.
Uniform Resource Locator.
16.
Uniform Resource Identifier, which is similar to URL except it does not contain any
information about how to locate the resource.
17.
language=en.
18.
80 because the protocol is HTTP.
19.
HttpURLConnection.
Search WWH ::




Custom Search