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

Catch(Exception e){
}

in that what is Exception and purpose of that in that place
exactly?

Answer Posted / sreenu karampudi

The Catch block is used to catch the exception which is
from the try block. The exception type should be same in
order to catch it otherwise it won't

for example;

try {
// piece of code which gets ArthimeticException
}

Catch(ArthimeticException e) [
}

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a variable simple definition?

1086


What does regex mean?

1083


What is the use of toarray () in java?

1120


What is the base class of all exception classes?

1124


Can we extend private class in java?

1027


What is string in java is it a data type?

1072


Difference between doublesummarystatistics, intsummarystatistics and longsummarystatistics ?

1036


What is the use of runnable interface?

1237


What is the exception hierarchy in java?

1025


Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?

1290


What is hashing principle in java?

1083


Why bytecode is called bytecode?

1308


Can a static method be overridden in java?

1059


What is the final class?

1129


What is the difference between the boolean & operator and the && operator in java programming?

1098