Home Java Java Hello Word Programming

Java Hello Word Programming

2 min read
0
0
247

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

Laravel 11 CRUD Application

In this tutorial will teach Laravel 11 CRUD Application step by step. Laravel  11 CRUD App…