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 are three advantages of using functions?
Tell us something about set interface.
What is visibility mode?
What is the difference between the size and capacity of a vector?
What is the default value of local and global variables?
What is an image buffer?
What is the same as procedures?
What is the difference between a checked and an unchecked exception?
How do you compare objects in java?
What does jre stand for?
How do weakhashmap works?
What is widening and narrowing in java? Discuss with an example.
What are static blocks and static initalizers in java ?
What is data string?
Explain about core java?