ProAnswers.org

How can we call the Static Members of a class?

Static members are not tied to class instances.

Static members can be called without having an instance.

 

The out field in java.lang.System is static.

 

public class MainClass {

 

  public static void main() {

    System.out.println("Wellcome to Java ");

 

  }

 

}