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 vector synchronized in java?
State the merge-sort principle and its time complexity.
What are jee technologies?
How do you use compareto in java?
What is string substring?
How do you compare values in java?
What is collection class in java?
Does sprintf allocate memory?
What are recursive functions? Give some examples?
What is difference between iterator and enumeration in java?
What are the three best choices for a development environment?
What is a local class in java?
Is char * a string?
Is passing by reference faster?
Discuss 2D arrays.