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

how to write a server program and sending the mails to the server using smtp protocol please help me

2055


What is string [] args?

999


What is deserialization?

1018


How many threads can I run java?

1108


What does indexof return in java?

977


When is the finalize() called? What is the purpose of finalization?

1067


can any body body expalin best definitions & best real time exaples for opps concepts.

2259


What is proper subset?

973


What is jdbc api?

1000


What is pojo class in java?

1083


Tell me how many ways are there to initialise an integer with a constant.

1108


Does java allow default arguments?

988


What is the difference between hashset and treeset in java?

1055


What is volatile data type?

994


How does arrays sort work in java?

1000