What will happen if we write code like:
try{}catch(exception e)catch(IOException i)
Answer Posted / 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 |
Post New Answer View All Answers
Difference between string, string builder, and string buffer?
Why are getters and setters used?
What is default locale java?
Does windows 10 need java?
What is jvm? How its run?
FOR EXAMPLE WE R HAVING TWO LIST ELEMENTS ..BOTH LISTS CONTAINS ID,NAME,PLACE ..I NEED TO COMPARE BOTH IDS IN TWO LISTS,IF ID'S R SAME MEANS WE HAVE ADD THE DETAILS(LIKE NAME,PLACE) TO MAP...HOW IS POSSIBLE ?CAN ANY ONE SUGGEST?
What is natural ordering in java?
What are the different tags provided in jstl?
What is meant by anonymous class?
What is the difference between JDK and JVM?
When would you use a static class?
Is zero a positive integer?
How can a gui component handle its own events in java programming?
Can we catch more than one exception in single catch block?
What is the difference between hashmap and hashtable? What is an interface?