Question 5 Flashcards
1
Q
PrintStackTrace()
A
printStackTrace is a method of the Throwable class. This method displays error message in the console
2
Q
getMessage()
A
The getMessage() method prints only the message part of the output printed by object e
3
Q
define the term custom exception
A
Java custom exceptions are used to customize the exception according to user need
4
Q
outline the syntax used for varargs
A
Varargs is a short name for variable arguments. In Java, an argument of a method can accept arbitrary number of values