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 the difference between checked and unchecked
Exceptions?

Answers were Sorted based on User's Feedback



what is the difference between checked and unchecked Exceptions?..

Answer / aravinda reddy

1) Checked Exceptions extends Exception and
UncheckedExceptions extends RuntimeException.
2) Checked Exception must be caught in the code using try -
catch-finally or declared thrown where as unchecked
exceptions no need to catch or thrown declared
3) None is functionally better than the other
4) Checked Exception is most common excpetions while
coding, so may be authors have made it as mandatory to
handle the excpetion while coding
5) We can create custom checked and unchecked exceptions by
extending Exception and RuntimeException.

Is This Answer Correct ?    11 Yes 0 No

what is the difference between checked and unchecked Exceptions?..

Answer / rohit

checked exceptions are error is suppose source file is
open... unchecked exception are error i.e array index out of
bound..thats all checked exception occur at compile time and
unchecked exception occurs at run time.

Is This Answer Correct ?    12 Yes 2 No

what is the difference between checked and unchecked Exceptions?..

Answer / santosh mundhe

Unchecked Exception(Runtime Exception):
there is no need to declare runtime exceptions, in simple
words we can say that at run time JVM will handle the
exception.

Checked Exception(Compiletime Exception):
at compile time JVM will check for exception for that it's
compulsory to handle the exception.Checked exceptions force
you to catch the exception and to do something about it.

Is This Answer Correct ?    7 Yes 1 No

what is the difference between checked and unchecked Exceptions?..

Answer / surya bondada

The exception which are checked by the complier are called
as checked exception.
The exception which are not checked by the complier are
called as unchecked exceptions.

Example for Checked Exceptions are:Exception,intrupted
Exception,serveltException,Io Exception and all child
classes are the examples for checked Exceptions.

Example for Uncheked Exceptions are:Runtime Exception it is
child of Exception,and child classes of Runtime Exceptions
like ArrayIndexOutofOrder,illegalmonitersafe
exception,illegal argement exception,Arthimatic
exception,and class cast exception,And All Error and child
classes are example for unchecked .

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More Java J2EE AllOther Interview Questions

2. Write a interface "Car" with the following methods void setName(String) String getName() void setColor(String) String getColor() void setModel(long) long getModel()

1 Answers  


Explain JSP life cycle?

2 Answers   Accenture,


httt method

2 Answers   HCL,


How to implement or use the singleton class in java?

3 Answers  


what is class/object diagram

3 Answers   Zycus Infotech,


What is the difference between comparable and comparator in java.util pkg?

0 Answers  


what is the difference between banking and insurance domain?

2 Answers  


What are maps interfaces in the java collections? : java collections

0 Answers  


What are the classes in the java collection framework? : java collections

0 Answers  


Explain the OOPS concept in Realtime Scenarion ? Take example as CAR. Please explain indetail ?

0 Answers   Cap Gemini,


Which is the better framework for web applications, struts or spring, and why?

1 Answers   IBM, TATA,


HOW MUCH PERCENTAGE WE DEDUCT FOR OUR SUPPLIERS OR OTHER PROFESSIONALS

0 Answers  


Categories