What is Java?

By Emiley J. Viewed: 31774 times Emailed: 302 times Printed: 302 times Bookmark and Share



A search on 'What is Java' in google returns roughly about 329,000,000 pages. That is the popularity of Java on the web. If you haven't read the history of Java please read it first here. Java was just meant to be a portable, platform independent programming language. But over the years it has transformed into a complex platform for computing portable software across different devices and systems.

What is the need for Java?

When there were so many programming languages already available what was the need for another programming language.

To understand this let us take an example of a program that runs on a SONY TV remote control. This program can  be written using a language (let us assume) called X. The remote control has an in-built chip on which this program will run. If we look at the functionality of a TV remote it is almost the same for any brand of TV. So by right the same program should be used on any brand of TV remote. 

In reality it is not. Why? Because the in-built chip in different brand of TV Remotes maybe different. Therefore the same program has to run these two different chips, they have to be re-compiled in order to suit different chips in other words platforms. If there are 100 different brands, the same program has to be re-compiled 100 times to suit these 100 different brands. This is where the problem arises. That is why a new programming language was needed. And Java was the answer. 

How does Java solve this problem?

The Java designers came out with a wonderful concept of a 'Java Virtual Machine'. Now Java differs from rest of the languages in using this unique concept. Which means unlike other languages a Java program when compiled produces a ByteCode rather than machine code. This ByteCode is machine independant (platform independant). The Java Virtual Machine resides on the machine and interprets this ByteCode into a form the machine can understand. 

Now take the same example of a TV remote. If the program was developed using Java rather than X, then the same program can be used in all different brand of TV Remotes provided all of them have the 'Java Virtual Machine' (JVM) installed on them. If all of them have the JVM the JVM will convert this same program into a form that each brand of TV remote understands. This is a very simple but effective method of making a program portable. This is how Java solves this problem.

Now that we understand what is Java, move on to the Java getting started guide.




Comments(0)


Be the first one to add a comment

Your name (required):


Your email(required, will not be shown to the public):


Your sites URL (optional):


Your comments:


Enter Code:
The Captcha image

Latest Tutorials

[2010-09-02]Steps in using verisign certificate with Glassfish appserver
[2010-08-02]emulator 0 terminated while waiting for it to register!
[2010-08-02]Cannot run program "C:\Program Files\Java\jre6\bin\javac.exe": CreateProcess error=2, The system cannot find the file specified
[2010-08-01]Step by Step guide to setup freetts for Java
[2010-07-31]Speech Packages available for Java API
[2010-07-31]Tutorial on setting up freetts with maven
[2010-07-31]package com.sun.speech.freetts does not exist.
[2010-07-31]Text to Speech conversion program in Java
[2010-07-31]How to create wav file using freetts
[2010-07-31]How to set the width of a Text element in JavaFX?
[2010-07-31]Major components of FxObjects in JavaFX
[2010-07-03]Using the AWS SDK for Java in Eclipse
[2010-07-03]Using the AWS SDK for Java
[2010-01-01]Converting properties using PropertyEditors and Other Spring features worth mentioning
[2010-01-01]How to create an array and method in JSP

More Latest News

Most Viewed Articles (in last 30 days)
How to use ArrayList in Java
XML and Java - Parsing XML using Java Tutorial
How to use Iterator in Java
Using substring( ) in Java
How to Send SMS using Java Program (full code sample included)
FileReader and FileWriter example program in Java
indexOf( ) and lastIndexOf( ) in Java
Using StringTokenizer in Java
HashMap example in Java
wait(), notify() and notifyAll() in Java - A tutorial
Abstract classes in Java
Method Overriding in Java
compareTo( ) in Java
Method Overloading (function overloading) in Java
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
Most Emailed Articles (in last 30 days)
Components of program
How to Send SMS using Java Program (full code sample included)
XML and Java - Parsing XML using Java Tutorial
Why java is important to the Internet
How to use ArrayList in Java
Execute system commands in a Java Program
FileReader and FileWriter example program in Java
Recursion in java
indexOf( ) and lastIndexOf( ) in Java
Method Overloading (function overloading) in Java
What is Java?
compareTo( ) in Java
History of Object
Sample Java Script that displays a movable clock
How to use Iterator in Java