What is Java?
By: Emiley J. in Java Tutorials on 2007-12-06
A search on 'What is Java' in google returns roughly more than a trillion 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
<< History of Java
This policy contains information about your privacy. By posting, you are declaring that you understand this policy:
- Your name, rating, website address, town, country, state and comment will be publicly displayed if entered.
- Aside from the data entered into these form fields, other stored data about your comment will include:
- Your IP address (not displayed)
- The time/date of your submission (displayed)
- Your email address will not be shared. It is collected for only two reasons:
- Administrative purposes, should a need to contact you arise.
- To inform you of new comments, should you subscribe to receive notifications.
- A cookie may be set on your computer. This is used to remember your inputs. It will expire by itself.
This policy is subject to change at any time and without notice.
These terms and conditions contain rules about posting comments. By submitting a comment, you are declaring that you agree with these rules:
- Although the administrator will attempt to moderate comments, it is impossible for every comment to have been moderated at any given time.
- You acknowledge that all comments express the views and opinions of the original author and not those of the administrator.
- You agree not to post any material which is knowingly false, obscene, hateful, threatening, harassing or invasive of a person's privacy.
- The administrator has the right to edit, move or remove any comment for any reason and without notice.
Failure to comply with these rules may result in being banned from submitting further comments.
These terms and conditions are subject to change at any time and without notice.
- Data Science
- React Native
- Cloud Computing
- Java Beans
- Mac OS X
- Office 365
- Tech Reviews
Read a file having a list of telnet commands and execute them one by one using Java
Open a .docx file and show content in a TextArea using Java
Step by Step guide to setup freetts for Java
Of Object, equals (), == and hashCode ()
Using the AWS SDK for Java in Eclipse
DateFormat sample program in Java
concurrent.Flow instead of Observable class in Java
Calculator application in Java
Sending Email from Java application (using gmail)
Java program to get location meta data from an image