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

Is java free for commercial?

920


Explain method overloading?

1012


What is math in java?

1057


how can you catch multiple exceptions in java?

1011


What are the restrictions imposed by a Security Manager on Applets?.

2610


What sorting algorithm does javascript use?

979


What is flag in python?

1029


Can you extend main method in java?

1171


What is the use of coding?

963


What are the 2 types of java programs?

1108


What is difference between protected and private?

1065


What is the console in java?

1147


Is void a wrapper class?

942


What is immutable class in java?

938


Why do we use regex?

1014