Get Answers to all your Questions

header-bg qa

what is the use of the line public static void main in JAVA programming in Java ?

Answers (1)

best_answer

Public: Access modifier, used to specifies from where and who can access the method.

Static: Keyword associated with a method, used to make it class-related method.

Void: Keyword, used to specify that a method doesn’t return anything.

Main: It is name of Java main method, Identifier which JVM identifies as starting point of the program.

 

Posted by

Deependra Verma

View full answer