11.5.1
The Classes
Exception
 and
RuntimeException
EXCEPTIONS
11.5.1.2
Standard Checked Exceptions
The standard subclasses of
Exception
 other than
RuntimeException
 are all
checked exception classes.
Package
java.lang
 defines the following standard exceptions, which, like all
other classes in package
java.lang
, are implicitly imported and therefore may be
referred to by their simple names:
ClassNotFoundException
: A class or interface with a specified name could
not be found ( 20.3.8).
CloneNotSupportedException
: The
clone
 method ( 20.1.5) of class
Object
has been invoked to clone an object, but the class of that object does
not implement the
Cloneable
 interface.
IllegalAccessException
: An attempt has been made to load a class using
a string giving its fully qualified name, but the currently executing method
does not have access to the definition of the specified class because the class is
not
public
 and is in another package.
InstantiationException
: An attempt was made to create an instance of a
class using the
newInstance
 method in class
Class
, but the specified class
object cannot be instantiated because it is an interface, is
abstract
, or is an
array.
InterruptedException
: The current thread was waiting, and another thread
has interrupted the current thread, using the
interrupt
 method of class
Thread
 ( 20.20.31).
Package
java.io
 defines the following additional standard exceptions:
java.io.IOException
: A requested I/O operation could not be completed
normally. Subclasses of this class include:
N
java.io.EOFException
: End of file has been encountered before normal
completion of an input operation.
N
java.io.FileNotFoundException
: A file with the name specified by a
file name string or path was not found within the file system.
N
java.io.InterruptedIOException
: The current thread was waiting for
completion of an I/O operation, and another thread has interrupted the cur 
rent thread, using the
interrupt
 method of class
Thread
 ( 20.20.31).
N
java.io.UTFDataFormatException
: A requested conversion of a string
to or from Java modified UTF 8 format could not be completed ( 22.1.15,
210






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

java hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Inexpensive Web Hosting  Jsp Web Hosting

Cheapest Web Hosting Jsp Hosting Cheap Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved