(2) Which of the following is a correct word for all Java Exceptions ?
(a) Errors
(b) Runtime Exceptions
(c) Throwables
(d) Omissions
(4) Which of the following elements is not included in try block ?
(b) the keyword catch
(a) the keyword try
(c) the curly braces
(d) statements that might cause Exceptions
Answers
Answered by
1
Answer:
2.a
4.b
Explanation:
Yes, we can have try without catch block by using finally block. You can use try with finally. As you know finally block always executes even if you have exception or return statement in try block except in case of System.
Similar questions
Computer Science,
5 months ago
Accountancy,
5 months ago
Math,
5 months ago
Math,
10 months ago
Biology,
10 months ago
Math,
1 year ago
Science,
1 year ago