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 does sizeof return?
What is compiler and what its output.
Is java programming easy?
What is enhanced loop in java?
How to create a base64 decoder in java8?
What is increment in java?
What are synchronized methods and synchronized statements in java programming?
Explain the importance of throwable class and its methods?
Name some OOPS Concepts in Java?
Is a class an object?
How can a gui component handle its own events?
What is operator overloading. Is it is supported in java?
What is keyword auto for?
Which class is the superclass of all classes?
What are the differences between heap and stack memory in java?