What is the use of Public static void main (string  args) In java
To do anything first step is from where to start , same in java your program starts from main method that's why you need it.
Now about such syntax,
Public keyword is used because JVM can access that method,
Static keyword is used because JVM will not need to create an object of class in which main method resides,
Void is return type , it means main method will not return anything to jvm after execution,
String args is an array of string type used to pass string arguments
This header means that this class is the main class should be compiled by the javac
This is a basic statement which necessary...like in c++ we have to write cout to print output on screen...its whole explanation should be left for future..just go on learning...
Thank u for ur answer
But could u explain me why we are using "string  args" in it.
This is used to access all the objects under "main" function..