Hello World in Java : What is Hello World ? And how to write one in Java


how to write a hello world program in java
You might have often heard of the ” hello world ” program which is by far, mostly the first code snippet taught in any programming language to anybody.

What is “Hello World”?

It is a simple code snippet that instructs the computer to print a ” hello world ” text on the screen.

Why “Hello World”?

Well let me take you way back when you were merely months old. So, you crawled right ? then you started to get on your knees and then on your feet and running.

Likewise it is somewhat similar to crawling, and is actually a good start to introduce to the person the basics, syntax and the layout of java programming language.

How to write hello world in java?

Here is the code to write hello world in Java :

import java.io.*;

public class helloworld {

public static void main(String[] args) {

System.out.println(“Hello World!”); } }

Related Articles:


Please enter your comment!
Please enter your name here