Posts

Public static void main ( String args[] )

Image
public static void main Public static  void main(String args[]) is the main method.it is the starting point of the program. In which main  method  you can change only string args[].  ·          Public ·          Static ·          Void ·          Main ·          String public The main method of the program is public because the public can access the out site of  class  JVM, call the method outside of class so therefore the main method of the program is  public . Public means method can access the out site of the class. If we did not use the public in the main method the main method cannot access the outside of class. Static The  main  method of...