Results 1 to 8 of 8
Thread: Basics
- 05-21-2008, 11:48 PM #1
Member
- Join Date
- May 2008
- Posts
- 3
- Rep Power
- 0
- 05-22-2008, 02:27 AM #2
Member
- Join Date
- Apr 2008
- Posts
- 23
- Rep Power
- 0
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
- 05-22-2008, 03:55 AM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
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.Java 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.Java Code:System.out.println(" ");
- 05-23-2008, 11:26 AM #4
Member
- Join Date
- May 2008
- Posts
- 17
- Rep Power
- 0
This describes the main method and what the program actually does. the program runs from herepublic static void main(String args[])
This outputs a string on the screen.System.out.println("")
- 05-23-2008, 11:37 AM #5
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
- 05-23-2008, 11:49 AM #6
Member
- Join Date
- May 2008
- Posts
- 17
- Rep Power
- 0
ya sorry for that
- 05-23-2008, 11:53 AM #7
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Just poinitng to the correct terminology my friend. :)
- 05-23-2008, 12:06 PM #8
Member
- Join Date
- May 2008
- Posts
- 17
- Rep Power
- 0
Similar Threads
-
regading jsp basics
By lpwing in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 01-21-2008, 07:52 AM -
Session Beans (basics)
By Java Tip in forum Java TipReplies: 0Last Post: 12-28-2007, 10:43 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks