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 method with example?
Can you access non static variable in static context?
Explain about the interpreter in java?
What is double word?
What are encapsulation, inheritance and polymorphism?
What is sizeof () operator?
What is immutable in java?
What is java developer skills?
What is replaceall in java?
Is array an object in java?
Is it necessary for the port addresses to be unique? Explain with reason.
These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }
Explain java coding standards for classes or java coding conventions for classes?
What is the string function?
how to convert Java project into Maven ?