Can multiple catch statements be used in exceptions ?
Answer Posted / sitaram
yes, multiple exceptions are possible.
we can write the program like this.
try{
}
catch(ArrayOutofBoundException e){ // Child Class.
}
----
catch(Exception e){ //parent class
}
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is a stringbuilder?
How do you classify Dialog Box?
Can Exception handling we can handle multiple catch blocks?
What is the memory leak in java?
What is an iterator interface in java programming?
What is difference between checked and unchecked exception in java?
What is meant by method?
Differentiate jar and war files?
Explain Basics of OOP Language in java
What is the difference between state-based unit testing and interaction-based unit testing?
What is the use of set in java?
What does string mean in java?
What is the default access specifier for variables and methods of a class?
Differentiate between a constructor and a method? Can we mark constructors final?
Why is multithreading important?