What is Java?

By: Emiley J. Emailed: 1729 times Printed: 2341 times    

Latest comments
By: rohit kumar - how this program is work
By: Kirti - Hi..thx for the hadoop in
By: Spijker - I have altered the code a
By: ali mohammed - why we use the java in ne
By: ali mohammed - why we use the java in ne
By: mizhelle - when I exported the data
By: raul - no output as well, i'm ge
By: Rajesh - thanx very much...
By: Suindu De - Suppose we are executing

A search on 'What is Java' in google returns roughly about a billipon 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

Java Home | All Java Tutorials | Latest Java Tutorials

Sponsored Links

If this tutorial doesn't answer your question, or you have a specific question, just ask an expert here. Post your question to get a direct answer.

Bookmark and Share


1. View Comment

Excellent Example...... To understand the concept to any beginner of the Language..........

View Tutorial          By: SUNNY at 2009-02-24 23:41:04
2. View Comment

awesome...its very understandable one..thnq..:)

View Tutorial          By: sharan at 2010-02-08 10:58:17
3. View Comment

really very excellent example....ThanQ...:)

View Tutorial          By: Tulasi at 2010-08-17 00:41:21
4. View Comment

thanks for providing information in a simple language

View Tutorial          By: shailaja at 2010-09-01 03:50:41
5. View Comment

Basic Example to undestand java literal persons
Thanx !

View Tutorial          By: Sajid mestri (maha,sangli) at 2010-10-30 00:44:44
6. View Comment

it is very useful to others............,thanx

View Tutorial          By: jey at 2012-01-06 08:53:22
7. View Comment

Can you tught me matrix function and friend function in c++...because my basic of in opps very low...

View Tutorial          By: Shiv pratap singh at 2013-01-12 06:46:46
8. View Comment

sach a lovely exmpl for bgnrs thanks

View Tutorial          By: aaditya at 2013-01-13 08:05:03
9. View Comment

sir, i want to learn java please help me.

View Tutorial          By: nitin mittal at 2013-12-23 10:04:11

Your name (required):

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

Your sites URL (optional):

Your comments:

More Tutorials by Emiley J.
Error generating R.java from manifest
ERROR 1251: Client does not support authentication protocol requested by server; consider upgrading MySQL client
IIS and Tomcat - how to configure to work together
PHP Warning: Unknown(): Unable to load dynamic library '/usr/local/php4/lib/php/extensions/no-debug ......
Adding your own Application icon for your J2ME application (jar file)
Creating Menus in Code using VB.net
Traversing all files in a directory using Ruby
Using Proxy to connect to URLs in Ruby
POST a form in Ruby
Reading URL content using Ruby (HTTP)
dRuby client/server mode sample program
Benchmark module in Ruby
encoding and decoding in Ruby using Base64 Module
Module Abbrev in Ruby
Standard Library Packages in Ruby

More Tutorials in Java
Update contents of a file within a jar file
Tomcat and httpd configured in port 8080 and 80
Java File
Java String
Count number of vowels, consonants and digits in a String in Java
Reverse a number in Java
Student marks calculation program in Java
Handling Fractions in Java
Calculate gross salary in Java
Calculate average sale of the week in Java
Vector in Java - Sample Program
MultiLevel Inheritance sample in Java
Multiple Inheritance sample in Java
Java program using Method Overriding
Java program to check if user input is an even number

More Latest News
Most Viewed Articles (in Java )
How to Send SMS using Java Program (full code sample included)
wait(), notify() and notifyAll() in Java - A tutorial
Method Overriding in Java
What is Java?
XML and Java - Parsing XML using Java Tutorial
InetAddress Example program in Java
How to use ArrayList in Java
Method Overloading (function overloading) in Java
Read from a COM port using Java program
Vector example in Java
Stack example in Java - push(), pop(), empty(), search()
Calendar - sample program in Java
Use of return statement in Java
Student marks calculation program in Java
arraycopy example in Java
Most Emailed Articles (in Java)
Vector in Java - Sample Program
Use of return statement in Java
The Basic Structure of a Simple Java program
Taking the size of an Array at runtime & generate random numbers to populate the Array
instanceof operator example in Java
PushbackReader sample program in Java
CharArrayWriter sample program in Java
iterator() and hasNext() in Java
3-D Secure Payment or 3DS - (3-Domain Secure Payment)
What is a Java Package and how to use it?
How to use Iterator in Java
J2EE Components
The modulus Operators
The java Buzzwords
Java Chat Client Sample Applet