Home Java Java Hello Word Programming

Java Hello Word Programming

2 min read
0
0
300

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

ChatGPT Free Online Download the ChatGPT App Easily

Have you ever wanted to talk to a friendly, smart robot that helps you with anything? Good…