Wednesday 24 July 2013

variable in java


  variable in java


     

Instance Variable:- Variable which are associated with a single instance of class.
e.g studentid,name,sal etc.

Static Variable:-  Variable  which are not associated withsingle instance of class  acommen value will be persist between all the object.Static variable are known as class variable.

Local Variable:- Which are arguments of method/function declared local in method/function or in some scope.

                                           

No comments:

Post a Comment