Why we are giving "public static void main"? How many times declared the main()?
We used this statement as it provides the "entry point" for the program. Whenever the program executes, the main method is always called.
It is defined once in a program.
public: The main method is public because it is called from outside the class. It is called by jvm.
static: It is static because without creating an instance jvm can call it.
void: It doesn't return anything therefore it is void.
String args:It is used for receiving any arbitrary number of arguments.