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
Hindi,
1 month ago
Computer Science,
1 month ago
English,
2 months ago
English,
2 months ago
Social Sciences,
9 months ago