July 16, 2024


Forever Driven Computer

Java Programming, A Hello World Program

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.