the if .. else construct the try .. catch .. finally construct the >>> operator the protected modifier the static modifier
by implementing the Runnable interface by subclassing the Thread class by either of the the above by none of the above Windows applications can't be multi-threaded
getHostAddress() getLocalHost() getCanonicalHostName() toString() all of the above
Socket ServerSocket DatagramPacket DatagramSocket MulticastSocket
a UDP client but not a TCP client a UDP server but not a TCP server all clients all servers all clients and all servers
Socket object ServerSocket object DatagramPacket object DatagramSocket object MulticastSocket object
Socket SocketException DatagramPacket InetAddress URL
clears the buffer causes the buffered data to be output causes the buffer to be bypassed fills the buffer with padding bytes closes the stream
uses the well-known port 8 is defined for TCP but not UDP is used by the ping utility is defined in RFC 862 is implemented by InetAddress class
NoSuchMethodException MalformedURLException SocketException EOFException UnknownHostException
top