Return to site

JAVA CERTIFICATION QUESTION: Rules about throwing checked exceptions in Java

· java

This quiz focuses on throwing checked exceptions.
Given the following class:

Run with no arguments; choose one.:

A. The class compiles, runs, and prints NPE T F followed by a stack trace.

B. The class compiles, runs, and prints IAE T F followed by a stack trace.

C. The class compiles, runs, and prints IAE F followed by a stack trace.

D. The class does not compile. If you remove line n1, it compiles, runs, and prints NPE T F followed by a stack trace.

E. The class does not compile. If you remove line n1, it compiles, runs, and prints IAE T F followed by a stack trace.

F. The class does not compile. If you remove line n1, it compiles, runs, and prints IAE F followed by a stack trace.

 

 

 

 

 

 

 

·ꓛ sᴉ ɹǝʍsuɐ ʇɔǝɹɹoɔ ǝɥꓕ

All Posts
×

Almost done…

We just sent you an email. Please click the link in the email to confirm your subscription!

OK