Hello World in java
First create a class.Here the class name is Demo.Then Create the main method which is represents the starting point of the program.On the main class use print statement to print something using " System.out.println()".
The Code Is:
public class Demo
{
public static void main(String args[])
{
System.out.println("Hello world");
}
}
First create a class.Here the class name is Demo.Then Create the main method which is represents the starting point of the program.On the main class use print statement to print something using " System.out.println()".
The Code Is:
public class Demo
{
public static void main(String args[])
{
System.out.println("Hello world");
}
}
Comments
Post a Comment