Geeks Talk

Prepare for your Next Interview




difference b/w Unchecked and checked Exception

This is a discussion on difference b/w Unchecked and checked Exception within the Java forums, part of the Software Development category; difference b/w Unchecked and checked Exception...


Go Back   Geeks Talk > Software Development > Java

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 10-24-2007
Junior Member
 
Join Date: Oct 2007
Location: pakistan
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
noman_mazher is on a distinguished road
difference b/w Unchecked and checked Exception

difference b/w Unchecked and checked Exception
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-24-2007
Contributing Member
 
Join Date: Sep 2006
Location: India
Posts: 39
Thanks: 2
Thanked 11 Times in 10 Posts
SahilKabra is on a distinguished road
Re: difference b/w Unchecked and checked Exception

Checked exception is an exception that you have to handle in your program.
EG: IOException

Unchecked exceptions are not required to be handled in the program
EG: NullPointerException
Reply With Quote
  #3 (permalink)  
Old 10-24-2007
Junior Member
 
Join Date: Jan 2007
Location: delhi
Posts: 22
Thanks: 0
Thanked 1 Time in 1 Post
prakash_13dec is on a distinguished road
Re: difference b/w Unchecked and checked Exception

Checked Exceptions are checked by the compiler during the compile time so if you have not handled (using try/catch or throws) the checked exception you wud not be able to complie the class. Ex:IOException
Unchecked exceptions are the exception that are not checked by the complier and will be thrown only at run time by the JVM itself for ex: NullPointerException, ArrayIndexOutOfBounds exception

-hope it helps.
Reply With Quote
  #4 (permalink)  
Old 10-31-2007
Junior Member
 
Join Date: Dec 2006
Location: Bhubaneswar
Posts: 15
Thanks: 0
Thanked 1 Time in 1 Post
jitudash is on a distinguished road
Re: difference b/w Unchecked and checked Exception

The exceptions which occur outside try block and remain undetected are known as unchecked exceptions.If such kind of exception occurs then the function containing the exception gets terminated immediately by calling abort() function.
Reply With Quote
Reply

  Geeks Talk > Software Development > Java


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
How many test cases can be checked in 1 day. chand05 Testing Issues 2 2 Weeks Ago 07:26 PM
exception handling amaravadi.krishna81 C# 2 03-24-2008 12:14 PM
difference b/w Exception and Error noman_mazher Java 10 12-19-2007 05:30 AM
Exception...... Sampath_Java Java 1 09-03-2007 03:55 AM
Exception Testing vijenjoy2k2 Testing Issues 3 06-04-2007 01:58 AM


All times are GMT -4. The time now is 01:53 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved