Difference between static and dynamic class loading
Difference between static and dynamic class loading.Static class loading | Dynamic class loading | The process of loading a class using new operator is called static class loading. | The process of loading a class at runtime is called dynamic class loading. | It is done using the new operator. | It is done by using Class.forName(….).newInstance(). | The retrieval of class definition and instantiation of the object is done at compile time. | Dynamic class loading is done when the name of the class is not known at compile time. | It only uses the new operator. | It uses methods such as getClass(); getName(); getDeclaredFields(); |
|
What is LinkedList class?What is LinkedList class? - LinkedList class implements the List interface. In addition to the List operations, the LinkedList class....
What is LinkedHashSet class?What is LinkedHashSet class? - LinkedHashSet combines the operations of LinkedList and HashSet, with the order of prediction for...
What is Map and SortedMap Interface?What is Map and SortedMap Interface? - A map is an object that maps the keys to values. Map provides the facility of storing elements without....