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


Please Help Members By Posting Answers For Below Questions

What are three advantages of using functions?

747


Tell us something about set interface.

755


What is visibility mode?

723


What is the difference between the size and capacity of a vector?

784


What is the default value of local and global variables?

827


What is an image buffer?

724


What is the same as procedures?

744


What is the difference between a checked and an unchecked exception?

740


How do you compare objects in java?

691


What does jre stand for?

802


How do weakhashmap works?

837


What is widening and narrowing in java? Discuss with an example.

759


What are static blocks and static initalizers in java ?

772


What is data string?

683


Explain about core java?

855