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 type of variable is gender?
What is a vector in java?
Will set allow duplicates in java?
A person says that he compiled a java class successfully without even having a main method in it? Is it possible?
Define an applet in java?
What are static blocks and static initalizers in java ?
What are the different conditional statements?
What is an array length?
What are the major drawbacks of external iteration?
Using callable statement how can you pass out parameters, explain with example?
How do you allocate memory to object?
What is treeset in java?
What is a Hash Table? What are the advantages of using a hash table?
What is the difference between pass by reference and pass by pointer?
Differentiate between a class and an object.