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...

Can multiple catch statements be used in exceptions ?

Answer Posted / sitaram

yes, multiple exceptions are possible.
we can write the program like this.

try{
}
catch(ArrayOutofBoundException e){ // Child Class.
}
----
catch(Exception e){ //parent class
}

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a stringbuilder?

856


How do you classify Dialog Box?

1065


Can Exception handling we can handle multiple catch blocks?

978


What is the memory leak in java?

965


What is an iterator interface in java programming?

903


What is difference between checked and unchecked exception in java?

957


What is meant by method?

1012


Differentiate jar and war files?

978


Explain Basics of OOP Language in java

987


What is the difference between state-based unit testing and interaction-based unit testing?

883


What is the use of set in java?

1065


What does string mean in java?

1039


What is the default access specifier for variables and methods of a class?

1134


Differentiate between a constructor and a method? Can we mark constructors final?

1128


Why is multithreading important?

889