Understanding Java Exceptions

Source: Internet
Author: User

Java exceptions are broadly divided into two categories: RuntimeException, others; note: Both types of exceptions occur during program run time! Only the latter must be processed during compilation, usually a try catch or throw, and the catch and finally statements are executed when such exceptions occur during a program. And RuntimeException don't have to point out the processing, probably the bottom of the virtual machine has a processing process it (this I guess).

1,noclassdeffounderror

The first thing to be sure is that this is not the description of the CLASSNOTFOUNDEXCEPTION;JDK document to Noclassdeffounderror is

Thrown if the Java Vsan or a ClassLoader instance tries to load in the
Definition of a class (as part of a normal method call or as part of creating a new
instance using the new expression) and no definition of the class could be found.
The Searched-for class definition existed when the currently executing class is compiled,
But the definition can no longer is found. The direct point is that the compiler passed, but at runtime, the JVM or ClassLoader wants to load the class but cannot find the class.

Solution Beancreationexception: Baidu has a half a day to solve, Bing search for a bit out. I've just heard that Bing works, and today I've learned it.

Understanding Java Exceptions

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.