Get Answers to all your Questions

header-bg qa

What is the meaning of public static void main in java

Answers (1)

best_answer

Public : declares a member's access as public

Static: indicates that the particular member belongs to a type itself, rather than to an instance of that type

Void: specifies that the method does not return any type, the method returns void .

Main: Not a keyword, but a method that is defined in the class.

Posted by

Deependra Verma

View full answer