A Simple Java Program
//This program prints Welcome to Java!
public class Welcome
{
public static void main(String[] args)
{
System.out.println("Welcome to Java!");
}
}
Notes
Output
public class Welcome
{
public static void main(String[] args)
{
System.out.println("Welcome to Java!");
}
}
Notes
- In the above program You have to notice some point
- Welcome is the class name
- Class is a Keyword
- Welcome is a Main class
- public static void main(String[ ] args) is Main method
- System.out.println("Welcome to Java!") is Print Statement
Output