Definition Sorry about that whisky image. I, too, love click baits 😉 The singleton pattern is a software design pattern that restricts the instantiation of a class to one object. Singleton pattern is a convention for ensuring one and only one object is instantiated for a given class. Usage Places where only one object is... Continue Reading →
A Tutorial on JVM – Run-Time Data Areas
Java code comprise of class and variable. Class and Variable come with different scope(private/public/static). All this takes memory. JVM has been given responsibility to run the java code. JVM gives memory for class/variables. But how does JVM manages memory? Let's imagine JVM memory as big box as it is shown in the picture below. We will... Continue Reading →