The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
July 2001



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.



Posted by Pavan Kumar Keely on July 25, 2001 at 6:39 AM

> Could you please explain follwing problems

> 1. I don't know the real meanning of "static" in a Java class
> 2. I want to print "Java" with System.out.println(" ")

> best regards

> Lanka bogoda

The meaning of static member in Java refers to the class member.
It can be used directly with the class


The static member will be loaded when the class is loaded in the memory and will not created for every object of that class. So, the member( method or variable) can be used by every object of that class type.
If you change the value of a static variable that change will be effected to all the variables of that class's object.

If you are not clear, please feel free to contact me at

Thank you and bye
Pavan Kumar Keely


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us