Java Reference
In-Depth Information
The output is shown here:
Methods declared as
static
have several restrictions:
They can directly call only other
static
methods.
They can directly access only
static
data.
They do not have a
this
reference.