Public static void main ( String args[] )

public static void main


Description: https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlH1CS6jUgrwjZ4eF5dFNP_IQUMH3goyMlGM0eqLnea6RlLtNKDv7qzrHz640AAwQmdN94h5Fdjc9Jmj5hnRl-FKDqdIBBvJsZwf8U_-tdo3JCLfbsV1mPd2Sw3_FSb2nuTJ53A2lFcFE/s640/Capture67.PNG













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

·        Static
·        Void
·        Main
·        String


Description: https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkjQX3cL-uI_VBnFq36_bM0PYsXP0CszwDwJasSNZBqpF_qZZrPrLmgYOc3Vxcitz7CutzS3zmpbfA-sZA6fLR52UUyBG_blhteibBkpgDuDUhifqZjk2ogNLC5FeJrykB-DGdNmpOhks/s640/Capture12345.PNG



























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 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. 

Void
The main method used the void .void means the main method return no values.
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.




Description: https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCbTjlUKViEVQgT2C1ATmEdT-mVAMbI4fa1sVeTAvpTIbZkNBghqCjce_nSPGINb_t9p9koYOjzth_FloHHua_fuyG_sxG_fqprRlSZU6TCm_8yYEj_1tZUArFk5nTdrkIZ3xSiNxZBPk/s640/Capture789.PNG
















<a href=" https://www.teeztareen.com/2019/06/blog-post_18.html"> public static void main </a>












public static void main

Comments