Tutorials Shared by the Internet Community
|Top Tutorials||New Tutorials||Submit||Login||Register|
Tutorial Basic Detail
Total Hits: 20420
Total Votes: 154 votes
Average Rating: 3.69 out of 5
Category: JAVA/Core JAVA
Description:As the name suggests java.lang.classNotFoundException in Java is a subclass of Exception and Comes when Java Virtual Machine tries to load a particular class and doesn't found the requested class in classpath. ClassNotFoundException is a checked Exception and you need to provide explicitly Exception handling while using methods which can throw java.lang.classNotFoundException in Java either by using try-catch block or by using throws clause. Though underlying concept of classnotfound exception is simple it always manifest itself in such format that you need to spend some time to figure out what exactly wrong with your java classpath. If you want to know secrets of java classpath see the link.