Types of Variables in Java

Types of Variable in Java

Variable is a type of Container , it has different types of values. actually it is small size memory in Java or any other language

Three Types of Variables

Class Variable
Instance Variable
Local Variable


Class Variable - A variable declare with static variable is class variable ( Static is a Java keyword)

Instance Variable - A variable which is declared inside the class but outside the method, called instance variable

Local Variable - A variable which is declared inside method called local variable.


For more Java Training Tutorials please Check out www.carvinc.com

Comments

Post a Comment

Popular posts from this blog

Is there any difference between Java EE and Java SE