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 are dot operator queries?
Difference between predicate, supplier and consumer ?
How does regex work?
Explain the term virtual machine?
Is java good for beginners?
What is java developer skills?
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? : Java thread
What is a string what operation can be performed out with the help of a string?
Can a private method of a superclass be declared within a subclass?
What are the states of thread in java?
What is the difference between pass by reference and pass by pointer?
What is ide with example?
What is the difference between stream and buffer?
What are the differences between abstract class and interface?
Difference difference paint() and paintcomponent()?