This article explains about variable modifiers available in java with example.
Keyword
Description
final
Is a constant
private
Can be accessed only by code in the same class
protected
Can be accessed only by code in a subclass or the same package
public
Can be accessed by any other class
static
Is not an instance variable
transient
Is not part of the persistent state of this class
volatile
Can change unexpectedly