Question 5 Flashcards

1
Q

PrintStackTrace()

A

printStackTrace is a method of the Throwable class. This method displays error message in the console

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

getMessage()

A

The getMessage() method prints only the message part of the output printed by object e

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

define the term custom exception

A

Java custom exceptions are used to customize the exception according to user need

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly