What will happen if we write code like:
try{}catch(exception e)catch(IOException i)
Answer Posted / 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 |
Post New Answer View All Answers
Tell us something about an iterator.
What is the declaration statement?
Define jre i.e. Java runtime environment?
What is linkedlist in java?
Can we change the scope of the overridden method in the subclass?
What is float in java?
What are keywords and reserved words in java?
Can we execute a program without main() method?
Have you ever used hashtable and dictionary?
What is treeset in java?
How many types of array are there?
What is difference between == equals () and compareto () method?
What is a super method?
What is the console in java?
What is java Applet?