Home Java Java Hello Word Programming

Java Hello Word Programming

2 min read
0
0
290

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

Fish Inventory Shop Management System in Angular

This article explain how to make a Fish Inventory Management App in Angular.this app expla…