In each case click the single most appropriate response. Only the correct response will register in the radio button.

In Java, exceptions are dealt with using ...

the if .. else construct
the try .. catch .. finally construct
the >>> operator
the protected modifier
the static modifier

How can an application be made multi-threaded?

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

A method of the InetAddress class ...

getHostAddress()
getLocalHost()
getCanonicalHostName()
toString()
all of the above

Java class that makes a TCP connection ...

Socket
ServerSocket
DatagramPacket
DatagramSocket
MulticastSocket

Who can use an anonymous port?

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

IGMP Membership Report is sent on instantiation of a ...

Socket object
ServerSocket object
DatagramPacket object
DatagramSocket object
MulticastSocket object

Which Java class can be used to do an ARP lookup?

Socket
SocketException
DatagramPacket
InetAddress
URL

The flush() method of the BufferedWriter class ...

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

The Echo protocol ...

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

Which is NOT a subclass of IOException?

NoSuchMethodException
MalformedURLException
SocketException
EOFException
UnknownHostException

Wrong answers so far:

top