Breaking News
Home / Java / Java Tutorials (page 4)

Java Tutorials

Understanding Constructors in Java

What are Constructors? A Constructor is a special method that is executed by the JVM only once, at the time of creation of an instance of a class. The constructor has to be defined as method that has the same name as that of the class. Also a constructor cannot …

Read More »

What is Dynamic Class Loading In Java?

 The JVM creates ClassLoaders that loads the classes as required during program execution. In case of Dynamic class loading, a class is loaded programatically instructing the ClassLoader to load it via API. The JVM does not know to load this class as it not declared in the code instead the …

Read More »

Understanding Java Shutdown Hook

Java Shutdown Hook

The JVM provides the capability to add Shutdown hooks at Runtime. This shutdown hooks can be used to perform any resource cleanup or save state as required just before the JVM shuts down either normally or abruptly. There can be more than one shutdown hooks that can be registered any …

Read More »