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

how to handle exceptions in core applications?

Answer Posted / laxmi

In core applications we can handle the exceptions by using
try &catch blocks.

ex:
class excep
{
public static void main(String[] args)
{
try
{
System.out.println(2/0);
}
catch(Exception e)
{
System.out.println(e);
}

}
}

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of inner classes?

939


What are internal and external variables?

904


What does n mean?

932


Is integer immutable in java?

924


What is void in java?

1013


What are the data types supported by java?

967


Why are the objects immutable in java?

935


Is string thread safe in java?

1031


How do you include a string in java?

926


What are the different types of inner classes?

966


Can you instantiate the math class?

990


What is the difference between checked exception and unchecked exception?

955


What are the four pillars of java?

1156


What is a nested class?

1048


What is mnemonic code?

959