Can any one explain the following lines in java programming :
public static void main(String args[])
System.out.println(" ");
Printable View
Can any one explain the following lines in java programming :
public static void main(String args[])
System.out.println(" ");
Ok
public static void main(String args[]) = the beginning of the main body(front end) of your program.
System.out.print(""); = prints whatever is in between " " to the screen
This is the entry point of any Java class. We called it as main method. (A function defined in a Java class as method) Without a main method you can't run your Java class directly.Code:public static void main(String args[])
Print a line of text(a string in Java) to the console and place the cursor on the next line. If you used print() it's not place the cursor on the next line.Code:System.out.println(" ");
This describes the main method and what the program actually does. the program runs from hereQuote:
public static void main(String args[])
This outputs a string on the screen.Quote:
System.out.println("")
ya sorry for that
Just poinitng to the correct terminology my friend. :)
ok thats fine with me