ContactUs :

Please send your Questions & Answers or Feedback to "mohan@javabook.org"

Explain the difference between static and dynamic class loading.

The static class loading is done through the new operator.

Dynamic class loading is achieved through Run time type identification. Also called as reflection

 

This is done with the help of the following methods:

getClass(); getName(); getDeclaredFields();

 

Instance can also be created using forName() method. It loads the class into the current class memory.

 

Related Posts Plugin for WordPress, Blogger...
Flag Counter