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 conditional equation?
Difference between concurrent hashmap and hashtable and collections
What is a programming object?
What is space character in java?
How do you remove all elements from an arraylist in java?
What is integer size in java?
What is the difference between break and continue statements?
Lowest Common ancestor in a Binary Search Tree and Binary Tree.
What language is pass by reference?
How do you take thread dump in java?
What is bifunction in java?
When should I use singleton pattern?
Explain listiterator and methods in listiterator?
Can we declare a constructor as final?
Name some classes present in java.util.regex package.