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 sorting algorithm does javascript use?

983


Explain tree set and its features?

1047


Can an interface implement another interface?

1030


What is %d in printf?

1040


Can we create our own daemon thread?

976


What is getclass () getname () in java?

1144


How to make a read-only class in java?

1158


In how many ways we can do synchronization in java?

963


How can we make copy of a java object?

1150


can rmi and corba based applications interact ?

1078


What classes of exceptions may be caught by a catch clause in java programming?

1175


What are the different ways of creating thread?

1009


What is the difference between choice and list?

1086


What are different types of arrays?

1014


What is autoboxing in java?

1062