What is the multi-catch block in java?
Answer / Tara Datt Joshi
The multi-catch block in Java allows catching multiple exceptions in a single catch block. It is defined using multiple catch clauses, separated by the | symbol. When executing, the JVM checks each catch clause from top to bottom until it finds an exception that matches the thrown exception. If no match is found, the program throws a RuntimeException.
| Is This Answer Correct ? | 0 Yes | 0 No |
how to make a un-checked exception as a checked exception one.
What is keyset in java?
What is the top class of AWT event hierarchy?
Java does not support multiple inheritance. how interface helps in the same?
What does regex mean?
What is percentage in java?
What are the override methods in Object class?
2 Answers Tech Mahindra, Wipro,
what is the difference between yielding and sleeping? : Java thread
what is the purpose of the wait(), notify(), and notifyall() methods? : Java thread
What is generic class?
Why we use static and synchronized in method for single thread model example: public static synchronized add(){}
Why is an interface be able to extend more than one interface but a class can’t extend more than one class?