wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Exception while overriding Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Exception while overriding" Watch "Exception while overriding" New topic
Author

Exception while overriding

neha. bajaj
Ranch Hand

Joined: Jul 15, 2012
Posts: 31
Could you tell me some name of checked exceptions ?
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 7065
    
  16

neha. bajaj wrote:Could you tell me some name of checked exceptions ?

java.io.IOException.

Winston


Isn't it funny how there's always time and money enough to do it WRONG?
Artlicles by Winston can be found here
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 13875
    
  10

Have a look at Exceptions in Oracle's Java Tutorials - especially the page The Catch or Specify Requirement.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36514
    
  16
neha. bajaj wrote:Could you tell me some name of checked exceptions ? . . .
Go and find the Exception class, and look for direct known subclasses. Everything in that block, except RuntimeException, and all their subclasses, are checked exceptions.
BalaMurali dhar
Ranch Hand

Joined: Apr 14, 2012
Posts: 60
The names of checked exceptions are
1) class Not Found Exceptions
2) Illegal Access Exception
 
wood burning stoves
 
subject: Exception while overriding
 
Similar Threads
Exceptions Doubt
JQ+: Question ID :960680824810
Exception handling!!
Is finally, really finally
throwing exception from finally block (try-finally clause without catch block)