Question: ITCS 1213 Self-check Quiz Exception Handling 1) What are the two broad categories of Exceptions in Java? 2) What is the major difference between a

ITCS 1213 Self-check Quiz Exception Handling

1) What are the two broad categories of Exceptions in Java?

2) What is the major difference between a checked exception and an unchecked exception?

3) What are the programmers two choices when writing code that may cause a checked-exception to be thrown by the Java virtual machine?

4) What clause( block) in the exception-handling mechanism in Java is optional?

5) Is it possible to have many catch blocks for one try block?

6) What is meant by the error going up through the call stack?

7) What is meant by handling an exception?

8) What is the ancestor of all Java exceptions that can be thrown?

9) Can a programmer create his/her own Exception class?

10) What method allows you to print the cause of the error? Where is this method originally written in the exception hierarchy?

11) Write a checked Exception class for an invalid menu choice.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!