Java hello world program
/*Hello World :
Java programming source code */
class HelloWorld
{
public static void main(String args[])
{
System.out.println("Hello World");
}
}
Output : Hello World
System :
Hello World is passed as an argument to println method, you can print whatever you want. There is also a print method which doesn't takes the cursor to beginning of next line as println does. System is a class, out is object of PrintStream class and println is the method.
Java programming source code */
class HelloWorld
{
public static void main(String args[])
{
System.out.println("Hello World");
}
}
Output : Hello World
System :
Hello World is passed as an argument to println method, you can print whatever you want. There is also a print method which doesn't takes the cursor to beginning of next line as println does. System is a class, out is object of PrintStream class and println is the method.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home