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

Does constructor be static?

997


What is the arraylist in java?

990


How to display names of all components in a Container?

2894


How do you override a method in java?

961


Differentiate between array list and vector in java.

1075


How large is a boolean?

959


What is meant by 'bit masking' in java?

1120


What is are packages?

989


Why do we create public static method in java?

1052


Why we override equals() method?

990


What is meant by interface?

1019


What is a parameter in a function?

958


How can constructor chaining be done using this keyword?

1220


What is bitwise complement?

936


What is the difference between a break statement and a continue statement?

993