Java
T
point
Home
Python
Java
JavaScript
HTML
SQL
PHP
C#
C++
DS
Aptitude
Reasoning
Selenium
DBMS
C
Android
Interview Q
Content Menu ▼
1
2
3
4
5
6
7
8
9
10
Question 1
:
Is a program required to catch all exceptions that might happen?
1.
No. You can write a program to catch just the exceptions you want.
2.
No. But if a program catches one type of exception it must catch all other types as well.
3.
Yes. If a program is not written to catch all exceptions it will not compile.
4.
Yes. A program can not do I/O unless it catches all exceptions.