Difference between loadClass and Class.forName ?<br/>
Javasearch.buggybread.com
Share

Search Interview Questions


 3356 questions in repository.
 There are more than 200 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Java - Interview Questions and Answers

 Q1. Difference between loadClass and Class.forName ?
Anonymous
Ans. loadClass only loads the class but doesn't initialize the object whereas Class.forName initialize the object after loading it.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     java   class loaders   jvm   advanced


Related Questions

  What are different ways to create String Object? Explain.
 Difference between JVM, JRE and JDK ?
  Explain java.lang.OutOfMemoryError ?
  What are various types of Class loaders used by JVM ?
  What are strong, soft, weak and phantom references in Java ?
  Can I import same package/class twice? Will the JVM load the package twice at runtime?
  Different types of memory used by JVM ?
  What is a class loader ? What are the different class loaders used by JVM ?
  Is JVM, a compiler or interpretor ?
  Why do member variables have default values whereas local variables don't have any default value ?




Subscribe to Java News and Posts. Get latest updates and posts on Java from Buggybread.com
Enter your email address:
Delivered by FeedBurner



comments powered by Disqus
 

Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked:
         

X Close this