Home Java Java Hello Word Programming

Java Hello Word Programming

2 min read
0
0
288

Lets write the Hello world Programming in Java

Java Example1

public class Example1 
{
    public static void main(String[] args) 
    {
       System.out.println("Hello World");
    }
}

Output

Hello World

How to run the Programming 

First Step have to Compile the Program use Javac  command

Javac Example1.java

Javac  Command  and Class name

After complie the program run the program

Lets write the Example2

public class Example2 
{
    public static void main(String[] args) 
    {
       System.out.println("-----Java---------");
    }
}

Output

—–Java———

 

Lets write the Example3

Load More Related Articles
Load More By admin
Load More In Java

Leave a Reply

Your email address will not be published. Required fields are marked *

Check Also

Employee Working Hours Calculation System using C#.net

Initialize the employee number, Hourswork,and Hoursrate to calculate a grosswage use the f…