GuidePedia

0




Public static void main (  String    args[] )













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[]. learn more


·        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. learn more

Static
The main method of a class is static .static means there is no need of creating an object for calling the main method.jvm can call the method without the help of an object. It means the main method not to belong to a particular object. learn more

Void
The main method used the void .void means the main method return no values. learn more
Main
The main is the name of the method.

String

The string is a parameter that passing from the main method.
Its letter is capital we can not change it.it is a predefined class. when we declare any class its first letter is capital.

Args[]

Args[] is a string type object.
Args[] is the variable name of the string array.
It can change it.





Post a Comment

THANKS FOR COMMENT

 
Top