What happens if IP Address of host cannot be determined?
(a) The system exit with no message
(b) UnknownHostException is thrown
(c) IOException is thrown
(d) Temporary IP Address is assigned
(a) The system exit with no message
(b) UnknownHostException is thrown
(c) IOException is thrown
(d) Temporary IP Address is assigned
Right choice is (b) UnknownHostException is thrown
The explanation: UnknownHostException is thrown when IP Address of host cannot be determined. It is an extension of IOException.