class X
{
publicvoid x()
{
}
publicstaticvoid y()
{
}
publicstaticvoid main(String[] _)
{
X.x(); // fails -- cannot call X.x from a static context
X.y(); // good -- y is static
X x = new X();
x.x(); // good - called x.x on an object
x.y(); // works, but should really be X.y()
}
}