« static » keyword in Java

Interview Cook Book

Static variable is associatedwith a class and notobjects of that class.

Static variables are storedin stack rather than heap.

Directly accessible via class name without generating an object.
ClassName.StaticMethod or ClassName.StaticMember

View original post

Publicités
Par défaut