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
What will be the default values of all the elements of an array defined as an instance variable?
What does null mean in java?
What is the difference between normal report & matrix report?
What are the topics in advance java?
What is pangram in java?
What is meant by string is immutable?
What are the types of methods in java?
Can arraylist hold different types java?
What is the benefit of inner / nested classes ?
What are invisible components?.
How can we avoid including a header more than once?
Can a final method be overloaded?
What are examples of modifiers?
What is the difference between heap and stack memory?
Explain runtime exceptions?