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
What is the += operator called?
'A class is a template for an object' explain this statement.
Can a static block throw exception?
Differentiate jar and war files?
What is the impact of declaring a method as final?
Can we override static methods in java?
What is the difference between variable declaration and variable initialization?
When should the method invokelater() be used?
What are the differences between heap and stack memory?
Can you instantiate the math class in Java?
Can we able to pass objects as an arguments in java?
What are scriptlets?
What is mysql driver class name?
Can we create an object of static class in java?
Can we overload destructor in java?