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