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
:
Say that a method catches an IOException in a catch{} block. Is it possible for that block to do some processing and then throw the same exception to the caller?
1.
No---when an exception is caught the Exception object is destroyed.
2.
No---an exception may be caught only once.
3.
Yes---as long as the method also has a throws clause for that exception.
4.
Yes---but the catch{} block must construct a new Exception object.