Specifying a port that is already in use or specifying an invalid port number when creating a DatagramSocket results in a __________.

a. SocketException.
b. PortInUseException.
c. PortException.
d. ConnectException.


a. SocketException.

Computer Science & Information Technology

You might also like to view...

Gary is preparing a lecture for his students on Internet technology. Gary tells his students that the ____ protocol transfers email messages from client computers to an email server.

A. SMTP B. HTTP C. POP D. FTP

Computer Science & Information Technology

The _____ saves your work and then turns down the power to your monitor and computer.

A. ?sleep mode B. ?active mode C. ?restore mode D. ?access mode

Computer Science & Information Technology

To name a range, select the range and then click the Define Name button in the Defined Names group.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

What is the postcondition of the following recursive algorithm?Algorithm recursiveAlgorithm (n)   if (n equals 0)      return 1   else      return (n * recursiveAlgorithm (n - 1))   end ifend recursiveAlgorithm

A. n is returned B. n^2 is returned C. n! is returned D. sum(1..n) is returned

Computer Science & Information Technology