Friday, December 23, 2011

It is a basic JAVA program to say to the world "Hello World". It is example for beginners to understand basic java code.
The name Java was derived at a local coffee shop frequented by some of the members and it's related to coffee material.
So In this basic program print Hello WORLD inside the coffee mug.

First install JDK(JAVA Development Kit) with latest version because to run java program need JVM(java virtual machine) when you install JDK then JVM installed in your system.
Java Virtual Machine(JVM) makes JAVA as platform independent.

Save Program
Type the program code in notepad and save Java program with classname.java. In this program save as hello.java.
File name and class name must be same.

Compile Programjavac hello.java
When compile program then it creates bytecode named with hello.class. class file created in same location where program stored.
Bytecode is a code which as same as machine language code.

Exicute the Programjava hello
Now we execute the bytecode in the Java interpreter with using this command.

Follow by Email

Facebook Page

Hey, If you have other program's and you want to publish here. Please write me at support @100india.com
We will publish your shared example with your name as
'This example is Contribute by: Deepak Kumar'.