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

What is exception and error? and what is the difference
between them?

Answer Posted / janet

The exception class defines mild error conditions that your
program encounters.
Ex: Arithmetic Exception,FileNotFound Exception

Exception can occur when
--> Try to open the file,which does not exist
--> the network connection is disrupted.
--> operands being manipulated are out of prescribed
ranges.
--> the class file you are interested in loading is
missing.
The error class defines serious error conditions that
you should not attempt to recover from .in most cases it is
advisable to let the program terminate when such an error
is encountered.
Ex. Running out of memory error,stack overflow error.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how does multithreading take place on a computer with a single cpu? : Java thread

1131


What is overloading and overriding in java?

1212


explain the concept of virtual method invocation in polymorphism in detail?

2213


Is null == null in java?

1092


How many types of interfaces are there?

1055


What is mean by exception?

1023


Is java a pure object oriented language?

959


What is math exp in java?

1038


Can size_t be negative?

1165


Explain treeset?

1103


How do weakhashmap works?

1145


What's a method in programming?

1060


What does it mean that strings are immutable?

1118


What about interrupt() method of thread class ?

1064


What state does a thread enter when it terminates its processing in java programming?

1027