what is unreachable code problem in multiple catch statements
Answer Posted / sriragv
Subclass exception handler should come first then the
superclass has to come next. Then only code wil compile
otherwise subclass exception will be never reached results
compilation error.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What does .equals do in java?
What is skeleton and stub?
What is difference between filereader and bufferedreader?
What is bifunction in java?
If I only change the return type, does the method become overloaded?
Explain the public class modifier?
How many times finalize method will be invoked? Who invokes finalize() method in java?
why Interface used?
how does multithreading take place on a computer with a single cpu? : Java thread
Can variables be used in java without initialization?
What is nested loop? What is dangling else condition in it?
List down the methods and interfaces of collection class in java.
Define interface in java?
when should you use stringbuilder class in a program?
What is prime number in java?