Java Programming, A Hello World Program

Java is the new trend amongst the world of programming languages, The most famous languages were C and C++. The C/C++ languages depended mainly on pointers and memory allocation techniques to actually utilize memory space to store data.

In Java there are no referencing, Pointing and memory allocation required, instead we use objects.Objects are children of the class or function you declare,

This makes Java easier to use, and it is a lesser stress for the processor.

For your ease, IDEs are very helpful in running huge lines of codes,

so if you are interested in Java then the recommended IDEs are

Eclipse and Netbeans.

Here is a sample Hello World program code in JAVA

The IDE, I used here is Eclipse Galileo

Import Java.Util.*;

public class HelloWorld

public static void main (Strings[ ] args)

System.out.println (“nHello Worldn”);


Hello World

So this shows us, hopefully that Java is a much easier language to use and compose rather than C or C++. The reason being that java is not just a language that simplifies the processing speed, but it also has an excellent format to show where you are at the moment.

for example

The proper way to write a Function in JAVA is

YourFunction yourobject = new YoourName();

This means that yourobject is the object of the function YourFunction()

So now you can reference any data through YourFunction using the dot ” . ” operator.

this makes writing codes easier and the execution speed or time complexity is reduced as well. so if you are looking for a language platform to take up, then JAVA might be the best one for you.

Leave a Reply

Next Post

A Common Analogy For The PC Computer Disk Defragment That You Can Understand

To begin with, what is a fragmented disk? A fragmented disk is the scattering of parts of a file throughout a disk, as when the operating system breaks up the file and fits it into the spaces left vacant by previously deleted files. On a Microsoft Windows operating PC there […]

You May Like