Home Java Java Hello Word Programming

Java Hello Word Programming

2 min read
0
0
277

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

Flexbox: Build a Responsive Navigation Bar with HTML & CSS

Introduction to Flexbox When it comes to building responsive layouts, Flexbox offers a pow…