Hello World program in Java.
Code:
Code:
- public class HelloWorld
- {
- /**
- * @param args
- */
- public static void main(String[] args)
- {
- // TODO Auto-generated method stub
- System.out.println("Hello World !");
- }
- }
******************************************
******************************************
HelloWorld is the Classname written on the first line.
System.out.println is the Print statement, to print the output on the console.
/** */ is the multiple-line comment in Java
// is the single line comment syntax in Java.
No comments:
Post a Comment