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 conditional equation?

1097


Difference between concurrent hashmap and hashtable and collections

1129


What is a programming object?

1179


What is space character in java?

1174


How do you remove all elements from an arraylist in java?

1099


What is integer size in java?

1092


What is the difference between break and continue statements?

1096


Lowest Common ancestor in a Binary Search Tree and Binary Tree.

982


What language is pass by reference?

1070


How do you take thread dump in java?

1056


What is bifunction in java?

1268


When should I use singleton pattern?

1086


Explain listiterator and methods in listiterator?

1064


Can we declare a constructor as final?

1396


Name some classes present in java.util.regex package.

1073