Java-Variable Types

Variable Types Java variables are actually classified into three types : 1) Instance Variables 2) Class Variables 3) Local Variables Instance Variables Instance variables are declared inside a class. Instance variables are created when the objects are instantiated and therefore they are associated with the objects. They take different values for each object. Class Variables … Read more…