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 vector synchronized in java?

942


State the merge-sort principle and its time complexity.

931


What are jee technologies?

969


How do you use compareto in java?

933


What is string substring?

1111


How do you compare values in java?

993


What is collection class in java?

942


Does sprintf allocate memory?

1053


What are recursive functions? Give some examples?

1144


What is difference between iterator and enumeration in java?

951


What are the three best choices for a development environment?

1065


What is a local class in java?

995


Is char * a string?

944


Is passing by reference faster?

949


Discuss 2D arrays.

1010