Java Programming, A Hello World Program

Jean J. White

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”);

Output

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.

Next Post

How to Recognize and Avoid Spyware Using Free Spyware Detection?

The term spyware does not refer to something that undercover operative’s use, but rather it is an advertising agency. In fact, spyware is also termed by the name adware. It refers to the category of software, which when installed to the computer, sends pop-up ads, redirects the browser to some […]

You May Like

Subscribe US Now