Static variable and static methods in java?

Answer:
The static modifier marks a variable or a method as a class member; Which means, the static element is shared across all instances of this class (all the objects that you create of this class).
In the case of static methods this feature don not let the use of instance variables, given that your method no longer belong to any instance.
Note: There are comments associated with this question. See the discussion page to add to the conversation.
First answer by Saroto. Last edit by Saroto. Contributor trust: 3 [recommend contributor recommended]. Question popularity: 1 [recommend question].