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 java dot?
Which variables are stored in heap?
What is hashtable and explain features of hashtable?
What are the object and class classes used for?
How do you convert int to char in java?
What is a java list?
Can we declare register variable as global?
Is string an object?
In a container there are 5 components. I want to display all the component names, how will you do that?
Explain the differences between abstraction and encapsulation?
What is oop in java?
What are the methods to rectify ambiguities in the interfaces in JAVA?
How do you add spaces in java?
What is parsing a sentence?
What is a condition in java?