Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Java Exceptions Java ClassNotFoundException Class Hierarchy Diagram

 
 

Share on Google+Share on Google+

Java ClassNotFoundException Class Hierarchy Diagram

Advertisement
In this section we will discuss about the java.lang.ClassNotFoundException class hierarchy diagram.

Java ClassNotFoundException Class Hierarchy Diagram

In this section we will discuss about the java.lang.ClassNotFoundException class hierarchy diagram.

This class extends the java.lang.Exception class. ClassNotFoundException is generated when it is tried to load a class using forName(), findSystemClass(), loadClass() method and the class definition is not found with the specified string. ClassNotFoundException class hierarchy diagram is given below :

Constructor Detail

Constructor
Description
ClassNotFoundException() This is a default constructor creates ClassNotFoundException object.
Syntax : public ClassNotFoundException()
ClassNotFoundException(String s) This constructor creates a ClassNotFoundException object with the given message detail.
Syntax : public ClassNotFoundException(String msg)
ClassNotFoundException(String s, Throwable ex) This constructor creates a ClassNotFoundException object with the given message detail and the exception generated during loading of class.
Syntax : public ClassNotFoundException(String s, Throwable ex)

Method Detail

  • getCause() : This method is used to find out the reason that why this exception generated.

    Syntax : public Throwable getCause()
     
  • getException() : This method is used to get the exception on occurrence of an error.

    Syntax : public Throwable getException()
Advertisements

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: December 28, 2012

Related Tutorials

Discuss: Java ClassNotFoundException Class Hierarchy Diagram  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:0
DMCA.com