what is unreachable code problem in multiple catch statements
Answer Posted / deepthi
if v just gve a default exception block,bfre the specific
catch statement it ll create a unreachable code exception
e.g
catch(Exception e)
{System.out.println(unknown exception);}
catch(ArithmeticException e)
{System.out.println("Division by zero");}
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
How would overload a function based on return type?
What method is used to specify a container's layout in java programming?
How many classes can any class inherit java?
What is the use of StringTokenizer class?
Which collection is best for sorting in java?
Explain creating threads by extending thread class ?
What is singleton class and how can we make a class singleton?
What is a numeric string?
Why java is a platform independent? Explain
What is java and its types?
How does varargs work in java?
What is an argument in java?
What is the meaning of I ++ in java?
What is data type in computer?
What is unmodifiable collection in java?