Static Archive
23 Jan 2016
Static Synchronized Methods

In my previous post, i elaborated object level lock that exist for each instance of a class. We can also use class level lock where all instances of a particular class can share it. As we discussed, any class loaded by java virtual machine has one class level lock. If we make a method static
08 Jul 2014
Instance and Static variables and Methods in Java

What is an instance? Creating an object from a class is known as class instance or creating a reference / copy. In other words you can consider an object or instance is same thing. Example of class Circle is given below. Circle c = new Circle(); c is an object created from class circle and