Starting out with Java - Chapter 11(M/C and T/F)
Questions and Answers| Latest Update
The numeric wrapper classes' "parse" methods all throw an exception of this type.
A. ParseException
B. NumberFormatException
C. IOException
D. BadNumberException ✔️✔️B. NumberFormatException
This is one or more statements that are always executed after the try block has executed and
after any catch blocks have executed if an exception was thrown.
A. try block
B. catch block
C. finally block
D. protected block ✔️✔️C. finally block
This is an internal list of all the methods that are currently executing.
A. invocation list
B. call stack
C. call list
D. list trace ✔️✔️B. call stack
This method may be called from any exception object, and it shows the chain of methods that
were called when the exception was thrown.
A. printInvocationList
B. printCallStack
C. printStackTrace
, D. printCallList ✔️✔️C. printStackTrace
These are exceptions that inherit from the Error class or the RuntimeException class.
A. unrecoverable exceptions
B. unchecked exceptions
C. recoverable exceptions
D. checked exceptions ✔️✔️B. unchecked exceptions.
All exceptions that do not inherit from the Error class or the RuntimeException class are .
A. unrecoverable exceptions
B. unchecked exceptions
C. recoverable exceptions
D. checked exceptions ✔️✔️D. checked exceptions
This informs the compiler of the exceptions that could get thrown from a method.
A. throws clause
B. parameter list
C. catch clause
D. method return type ✔️✔️A. throws clause
You use this statement to throw an exception manually.
A. try
B. generate
C. throw
D. System.exit(0) ✔️✔️C. throw
This is the process of converting an object to a series of bytes that represent the object's data.
Questions and Answers| Latest Update
The numeric wrapper classes' "parse" methods all throw an exception of this type.
A. ParseException
B. NumberFormatException
C. IOException
D. BadNumberException ✔️✔️B. NumberFormatException
This is one or more statements that are always executed after the try block has executed and
after any catch blocks have executed if an exception was thrown.
A. try block
B. catch block
C. finally block
D. protected block ✔️✔️C. finally block
This is an internal list of all the methods that are currently executing.
A. invocation list
B. call stack
C. call list
D. list trace ✔️✔️B. call stack
This method may be called from any exception object, and it shows the chain of methods that
were called when the exception was thrown.
A. printInvocationList
B. printCallStack
C. printStackTrace
, D. printCallList ✔️✔️C. printStackTrace
These are exceptions that inherit from the Error class or the RuntimeException class.
A. unrecoverable exceptions
B. unchecked exceptions
C. recoverable exceptions
D. checked exceptions ✔️✔️B. unchecked exceptions.
All exceptions that do not inherit from the Error class or the RuntimeException class are .
A. unrecoverable exceptions
B. unchecked exceptions
C. recoverable exceptions
D. checked exceptions ✔️✔️D. checked exceptions
This informs the compiler of the exceptions that could get thrown from a method.
A. throws clause
B. parameter list
C. catch clause
D. method return type ✔️✔️A. throws clause
You use this statement to throw an exception manually.
A. try
B. generate
C. throw
D. System.exit(0) ✔️✔️C. throw
This is the process of converting an object to a series of bytes that represent the object's data.