Basic Introduction To JAVA and Printing “Hello World”

We read about the types of programming languages in the previous post, and now we know that the most important programming languages are high-level languages. Java falls in the category of High-Level languages. It is a powerful and versatile programming language that can develop software for mobiles, desktop computers and servers.

One of the designers of Java says,

    Java is simple, object oriented, distributed, interpreted, robust, secure, architecture neutral, portable, high performance, multi-threaded, and dynamic.

Before starting with application development, you need to maintain a proper workstation which is suitable for application development. There are two things that you need to download and install.

1)You need to download and install the latest JAVA Standard Edition(SE). Java SE is the foundation upon which all other Java technology is based.

2)Now you need a Java development tool. It is a software that provides an integrated development environment(IDE) for Java programs. This software is very user-friendly and easy to use, you just input the source code and it compiles and executes the program in one window! Some good IDEs that you can use are:
Well, I recommend you to use eclipse because I’ll be using Eclipse in coming tutorials.

Printing “Hello World” using JAVA!
Now its time to show your computer who’s the boss! 😀 Now you will tell your computer what to do!
You just have to print ‘Hello World’.

1)Open Eclipse(or whatever IDE you installed).

2) Create a new Java Project.

3)Create a new class, name it ‘HelloWorld’.

4)Now type the following code as it is;

    public class HelloWorld {

    public static void main(String[] args)

    System.out.println(“Hello, World”);


After typing the code, execute your project! Now you’ll see a window that would be saying “Hello World”.

    *The System.out.println(“”); is the code used to print statements in Java. Anything you write in between the quotation marks will be your output.
Share this product!