First Java Program
Lets run our first Java Program which displays "Welcome To Java".
import java.lang.*;
class First
{
//First is the name of the Class
//"What ever we type after "//" are known as 'comments' and they wont be executed while running your Java application."
public static void main(String args[])
{
System.out.println("Welcome To Java");
}
}
Note: 'void' never returns anything.
import java.lang.*;
class First
{
//First is the name of the Class
//"What ever we type after "//" are known as 'comments' and they wont be executed while running your Java application."
public static void main(String args[])
{
System.out.println("Welcome To Java");
}
}
Note: 'void' never returns anything.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home