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 the purpose of a parameter?
What happens if a try-catch-finally statement does not have a catch clause to handle an exception that is thrown within the body of the try statement?
What are unchecked exceptions in java?
Is java se free?
Write a program to calculate factorial in java?
How do you do math powers in java?
Explain about oops concepts.
What is finalize() function in java?
What does I ++ mean?
when you will synchronize a piece of your code? : Java thread
Say any two properties in beans?
what is server side caching?
Does java linked list allow duplicates?
What are generic methods?
Is .net better than java?