here we are creating a simple class reffered as app ...public static void main(String args[]) is a must for every programming language because this is the entry point for execution to take place. Without this statement the program wil be compiled but not executed.
public here is an access specifier which shows that any outside program can access the main method ..
static here refers that the copy of variable/method cannot be manipulated
void here refers that there is no return type
main is a keyword to specify the opening gate for execution
String args[] are used to store command line arguments.
if you are unable to see the code just double click the image
No comments:
Post a Comment