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 is the constructor?

1094


Difference between a class and an object?

1109


What is nextline method in java?

1089


How to instantiate static nested classes in java?

1131


What data structures are used to perform recursion?

1099


How can you traverse a linked list in java?

1185


What is java oops?

1154


What is the use of generics? When was it added to the Java development Kit?

1066


Why java is used everywhere?

1055


How to implement a multithreaded applet?

2727


Can we create more than one object singleton class?

1103


Write code of any action class?

1058


What is the format specifier?

987


Is java programming easy?

1040


Why a dead thread occurs?

1022