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 is byte value?
Explain 5 features introduced in jdk 1.7?
How are variables stored?
Can we overload the main() method?
Why can't you declare a class as protected?
What is dynamic binding(late binding)?
Where and how can you use a private constructor?
What happens if main method is not static?
What are the four pillars of java?
In java, how we can disallow serialization of variables?
Can an object subclass another object?
What makes a function well defined?
What is the difference between jfc & wfc?
What is return in java?
Can we have any other return type than void for main method?