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 do we access static members in java?
Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.
What is the difference between the ">>" and " >>>" operators in java?
what state does a thread enter when it terminates its processing? : Java thread
What are the benefits of immutable objects?
What is the difference between superclass and subclass?
What is the syntax and characteristics of a lambda expression? Explain
Is java hard to learn?
What is ide with example?
How does thread synchronization occurs inside a monitor?
Explain yield() method in thread class ?
What are the super most classes for all the streams?
What is the difference between applet and application?
Can you call one constructor from another if a class has multiple constructors?
What are the application of stack?