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
What is singleton math?
What is string length in java?
What are the different collection views provided by maps?
Explain the difference between jvm and jre?
What is a line break?
Which is fastest collection in java?
How variables are stored in memory?
What is the basic of java?
What are adapter classes?
Why string is not thread safe?
What are the differences between processes and threads?
What are the types of strings?
What does mean in regex?
What is qms certification?
What is bytecode in java ?