Question OOP-EXC-0024
EasyCan a single try block be followed by several catch blocks in Java?
- A.
No, only one
- B.
Only if they are nested
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Exception Handling question
Can a single try block be followed by several catch blocks in Java?
No, only one
Only if they are nested
Sign up free to see the answer and a step-by-step explanation.
Only for checked exceptions
Yes, one for each exception type to handle