Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is a method in java?

1102


Explain what do you mean by functional overloading in java?

1067


Is string is a data type?

991


Is arraylist an object in java?

1228


What is the mapping mechanism used by java to identify IDL language?

1044


What is the purpose of stub and skeleton?

1077


What isan abstract class and when do you use it?

1665


What is the purpose of format function?

1236


What invokes a thread's run() method in java programming?

1272


What is string pool?

1213


What is an immutable class? How to create an immutable class?

1115


Tell me how many ways are there to initialise an integer with a constant.

1154


Does java initialize arrays to zero?

1091


List primitive java types?

1092


What is the difference between pass by reference and pass by pointer?

1175