Why Java Platform Independent?
0 pts.
0
Q:
Why Java Platform Independent?
I don't find the exact reason why Java is called Platform independent.
I have read it in many books.
Still a practical overview is not there.
Please Specify in more detailed.
ASKED: Dec 17 2004  4:19 AM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
0 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
Because you don't need to apply any changes to code when you port it (move over) from say, Windows XP to Linux machine.

For example, we develope code on our WinXP based workstations, test and debug it under WS Ap.Developer, then load it (source code) into PVCS, compile under Linux and deploy on the HOST server that run under AIX.

So, the same code without changing no line works in all three environments - Windows, Linux, AIX (Unix from IBM)
Last Answered: Dec 17 2004  5:22 AM GMT by IgorTopalov   0 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

TedNYC   0 pts.  |   Dec 17 2004  9:08AM GMT

The java code is platform-independent, but each platform has a java machine which translates and executes the java code for use that platform.

 

Ysrd   430 pts.  |   May 25 2008  3:36AM GMT

Each platform has a JRE Java Runtime Environment That provides a platform native to each type of computer or programmable device. This JRE then takes the java code and (most people don’t like this bit) interprets it and then runs it on the computer.
The JRE allows the write once run anywhere because it gives a piece of ‘middle ware’ that sits between the code and the computer. This middleware is not the same on all computers as it has to talk to the cpou and chipset of the system it will run on but effectively provides a common interface on each system thus making the code abstracted from the cpu.

 

Ashish2   105 pts.  |   Aug 28 2009  4:55AM GMT

Java is platform independent because of its generation of intermediate byte code.
As the byte can be known by all platforms or computers you are no need to install any settings for it.
It automatically gets executed when it is loaded.

 
0