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
Is java free for commercial?
Explain method overloading?
What is math in java?
how can you catch multiple exceptions in java?
What are the restrictions imposed by a Security Manager on Applets?.
What sorting algorithm does javascript use?
What is flag in python?
Can you extend main method in java?
What is the use of coding?
What are the 2 types of java programs?
What is difference between protected and private?
What is the console in java?
Is void a wrapper class?
What is immutable class in java?
Why do we use regex?