Difference between ClassNotFoundException and NoClassDefFoundError

  Рет қаралды 84,271

Durga Software Solutions

Durga Software Solutions

Күн бұрын

Пікірлер: 25
@rajeshthokala4163
@rajeshthokala4163 10 жыл бұрын
i dont know really ekalavya story was really there r not in history..,but u have thousands of ekalavyas here sir..,no of my frnds learning by sitting in hostels..,verry glad to share here@@ this is good programming practiece sir
@choudharyrajesh123
@choudharyrajesh123 8 жыл бұрын
I think we can get the NoClassDefFoundError even in case of dynamic loading. Suppose you try to load class A dynamically which contains an inner class B and at run time Class A .class is present but class B .class is not there then you will get NoClassDefFoundError error. Correct me if i am wrong
@madhukumartechfortit2538
@madhukumartechfortit2538 9 жыл бұрын
sir am a big fan of u... my ambition is i want to be a good java trainer like u.. please bless me
@lokeshrao8161
@lokeshrao8161 2 жыл бұрын
Good explanation 🙏
@NayanGohil
@NayanGohil 9 жыл бұрын
Hi, I understood the difference between these two. But my concern is, if both the things are same (i.e. could not find class at runtime), why the need of having two different exceptions? I mean what happens inside the JVM?
@love70200
@love70200 9 жыл бұрын
because , for a hard coded class names, java doesnt want developers to handle it by any hook or crook and wants to treat it like an error from where situation cannot be handled. for a dynamic class name, since at the very begining, classnames were provided dynamically, allows for a situation where classnames are user fed, if users makes a mistake, java gives u an option to take an alternate course of action. hence the need for two
@amodmaroly8330
@amodmaroly8330 8 жыл бұрын
i have a doubt @durga sir so when database driver is loaded using Class.forName("oracle.jdbc.driver.OracleDriver"); at run time how can we say that prepared statement is precompiled
@digambarrathod8775
@digambarrathod8775 Жыл бұрын
Nice to learn with Durga Sir java but please provide notes for these java course
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions Жыл бұрын
Hello Friend. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@Indian1947-o1z
@Indian1947-o1z 2 жыл бұрын
Thank you Sir
@madhusudhankamalapuram7608
@madhusudhankamalapuram7608 3 жыл бұрын
Thanks sir..........
@VINAYKUMAR-nj9pl
@VINAYKUMAR-nj9pl 2 жыл бұрын
The name itself says it is an error( NoClassDefFoundError ) . But you are saying it as an Runtime exception! ?
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 2 жыл бұрын
Hello Vinay. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@imranmoosani
@imranmoosani 7 жыл бұрын
but when we do Test t = new Test() - - if class file is not there, wont be get compile time error ? saying class not available ??
@asifkamranmalick5313
@asifkamranmalick5313 7 жыл бұрын
he meant .class file
@ap6471
@ap6471 5 жыл бұрын
Sir please also explain using codes too
@jonesalapat6199
@jonesalapat6199 9 жыл бұрын
ClassNotFoundException cannot be called as runtime exception since it does not extend runtime exception
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 9 жыл бұрын
Jones J alapat View 42 videos on Collections in Java, kzbin.info/www/bejne/qHqWh55_qahjm6M View 5 videos on JSF, kzbin.info/www/bejne/qHLEYqqtjLGqZ7s View 50 videos on Oracle, kzbin.info/www/bejne/pomYiH2ZqdNmgdk View 35 videos on Hibernate, kzbin.info/www/bejne/iYubkpWHaNugmsU View 115 videos on Data Structures, kzbin.info/www/bejne/pXKkmnWHe7h4n80 View 58 videos on Struts, kzbin.info/www/bejne/pIrUpKGofaymh8k View 74 videos on Spring, kzbin.info/www/bejne/j6HWd4drZdKnntU View 41 videos on CRT, kzbin.info/www/bejne/nHW1n36GrtuFZ5Y View 12 videos on JAVA Reflections API & Annotations kzbin.info/www/bejne/eKmmqGOrid2NiNU View 39 videos on Java Real Time Project Implementation on Spring,Struts & Hibernate, kzbin.info/www/bejne/n3zRk2N3nLCNgJI View other videos on ADV JAVA kzbin.info/www/bejne/bmTNfaSKdsekh7c
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 9 жыл бұрын
Durga Software Solutions View 9 videos on ENUM, kzbin.info/www/bejne/imLJfoqtfp53Z6c View 16 videos on Serialization, kzbin.info/www/bejne/mHrdl6Wsmdlqp68
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 9 жыл бұрын
Durga Software Solutions Hi, We are very Happy to say Our Expert Faculty Durga Sir's One-to-One Video Sessions on "Core Java with SCJP/OCJP" are available. Shooted from direct Class Room. YOu can access these videos from anywhere anytime. Around 200+ hours training, 178 Videos with clear explanation on every concept. 100% Satisfaction and Perfection in Subject guaranteed. For Demo Sessions Please call or drop a mail to us... DURGASOFT Online Training ph: 91-8885252627 mail :durgasoftonline@gmail.com, durgasoftonlinetraining@gmail.com Demo Sessions on youtube: 1. Language Fundamentals(16 Videos)kzbin.info/www/bejne/m4W7lWtvqZ2hnas 2. Operators & Assignments(7 Videos)kzbin.info/www/bejne/Z3uqgIOeft6bd68 3. Flow Control(6 Videos)kzbin.info/www/bejne/jmfVhGyseZ5gp68 durgasoft.com durgasoftonlinetraining.com facebook.com/durgasoftware durgajobs.com facebook.com/durgajobsinfo
@AkashJaiswalAkash7771
@AkashJaiswalAkash7771 9 жыл бұрын
+Jones J alapat ClassNotFound is a Checked Exception.. But Suppose During Runtime the Class Specified by the use is Not Present at first Place..So At Runtime we get the ClassNotFoundException ..
@santoshkumarkar39
@santoshkumarkar39 4 жыл бұрын
Type casting.......... I remember...
@sameerpatel3476
@sameerpatel3476 7 жыл бұрын
Same happened with me today :'( if I would have got this vdo before I might be selected in IBM today.
@jitsinghkhalsa1221
@jitsinghkhalsa1221 4 жыл бұрын
Okay from now onwards, if you face same question, kindly mention below point to interviewer.He/She would be very happy. ClassNotFoundException:- 1)It occurs when an application tries to load a class at run time which is not updated in the classpath. 2)It is thrown by the application itself. It is thrown by the methods like Class.forName(), loadClass() and findSystemClass(). 3)It is an exception. It is of type java.lang.Exception. NoClassDefFoundException 1)It occurs when java runtime system doesn’t find a class definition, which is present at compile time, but missing at run time. 2)It is thrown by the Java Runtime System. 3)It is an error. It is of type java.lang.Error
24  What is difference between new operator and newInstance() method
30:36
Durga Software Solutions
Рет қаралды 88 М.
Jar vs war vs ear
9:04
Durga Software Solutions
Рет қаралды 299 М.
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
Difference between Exception and Error
9:38
DURGA EDUCATION
Рет қаралды 264 М.
JAVA CODING STANDARDS
15:33
Durga Software Solutions
Рет қаралды 115 М.
Explain about System.out.println();
8:27
DURGA EDUCATION
Рет қаралды 382 М.
Difference between Interface and Absract Class
16:57
DURGA EDUCATION
Рет қаралды 972 М.
How to STUDY so FAST it feels like CHEATING
8:03
The Angry Explainer
Рет қаралды 2,3 МЛН
Difference between Parent p = new Child(); and Child c = new Child();
9:23
ClassNotFoundException vs NoClassDefFoundError
14:13
Java Shastra
Рет қаралды 2,7 М.
Difference between == operator & .equals () method
8:54
Durga Software Solutions
Рет қаралды 37 М.
Garbage collection in Java, with Animation and discussion of G1 GC
44:20
Ranjith ramachandran
Рет қаралды 494 М.
Difference between Checked exceptions and Unchecked exceptions
25:30
DURGA EDUCATION
Рет қаралды 340 М.
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН