What will happen if we write code like:
try{}catch(exception e)catch(IOException i)
Answers were Sorted based on User's Feedback
Answer / maurice johnson
Ignoring the incorrect syntax of the Try\Catch Block, it
will never reach the IOException portion of the
Catch......the first catch will always be triggered due to
it only Catching type Exception.
| Is This Answer Correct ? | 12 Yes | 3 No |
Answer / jahri
yes it should be child exception to base exception
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / mathi
Ignoring the incorrect syntax of the Try\Catch Block, it
will never reach the IOException portion of the
Catch......the first catch will always be triggered due to
it only Catching type Exception.
| Is This Answer Correct ? | 1 Yes | 1 No |
What is the Concept of Encapsulation in OOPS
What is difference between length and length() method in java ?
Is string is a data type?
What do you mean by byte code?
how to transactions(Bank transactions) in business process in ejb?
How do u provide security in java
Hi friends, i am new to java. can you explain how java is secured.
In treeset we add same object ...what will be the out put
What is emant by API? is it related to java only or it is common for all OOPS supporting language?
what is the purpose of the final in the try-catch-final
What is a get method?
Why is a singleton bad?