The object that we throw must be of which of the following Java class type ?
a) java.lang.throw
b) java.lang.catch
c) java.lang.throws
d) java.lang.throwable
Answers
Answered by
1
Answer:
the answer of questions is d
Answered by
0
Answer:
Java Throw. The throw keyword is used to throw an exception explicitly. Only object of Throwable class or its sub classes can be thrown. Program execution stops on encountering throw statement, and the closest catch statement is checked for matching type of exception.
Similar questions
Biology,
1 month ago
Math,
1 month ago
English,
4 months ago
English,
4 months ago
Social Sciences,
10 months ago