why should we get the following error ?
Exception in main method NoClassDefFoundError:classname
could anyone give the detail clarification on how java
compiler can look for .class file?
Answer Posted / narsimharaju
When we compile our java .class file then it is not available then we will get a runtime exception saying
NoClassDefFoundError:classname.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is currentthread()?
1.IN CASE OF DYNAMIC METHOD DISPATCH WHY WE USE REFERENCE VARIABLE,WE CAN USE THE DIFFERENT DEFINED OBJECT DIRECTLY TO ACCESS THE DATA MEMBER AND MEMBER FUNCTION OF THAT RESPECTIVE CLASS?WHAT IS THE MAIN FUNCTION OF "REFERENCE VARIABLE" HERE?
what is predefined function in java?
How to restrict a member of a class from inheriting by its sub classes?
Is upper case in java?
Do I need java for windows 10?
How do you read a char in java?
How to make a read-only class in java?
What is the difference between a method and a function in alice?
How do you break a loop?
How many threads can I run java?
What is oops in java?
What is number data type in java?
What do you understand by the bean persistent property?
What is the purpose of the system class in java?