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 a method in java?
Explain what do you mean by functional overloading in java?
Is string is a data type?
Is arraylist an object in java?
What is the mapping mechanism used by java to identify IDL language?
What is the purpose of stub and skeleton?
What isan abstract class and when do you use it?
What is the purpose of format function?
What invokes a thread's run() method in java programming?
What is string pool?
What is an immutable class? How to create an immutable class?
Tell me how many ways are there to initialise an integer with a constant.
Does java initialize arrays to zero?
List primitive java types?
What is the difference between pass by reference and pass by pointer?