What will happen if we write code like:
try{}catch(exception e)catch(IOException i)
Answer Posted / sitaram
it is not complied. because first catch having child
exception and last exception having parent exception is must.
correct answer is :
try{
}
catch(IOException i){
}
catch(Exception e){
}
| Is This Answer Correct ? | 19 Yes | 2 No |
Post New Answer View All Answers
What is the difference between overriding & overloading?
Are global variables initialized to zero?
How will you load a specific locale?
What is java and its types?
Difference between overriding and overloading in java?
What is break and continue statement?
Can a class be private in java?
Can we have multiple public classes in a java source file?
What is the difference between final, finally and finalize()?
What is super?
What is a private class in java?
What is port number in java?
Can private method static?
Explain about arraylist?
What is strings in java?