Java byte code

What is byte code and how it is superior from other code.java's extra features and reason ?

Showing Answers 1 - 4 of 4 Answers

In most of the other languages other than java source code is complied and then some platform specific code is added to that compiled code so that that compied code can be excecuted only on that platform but in case of java after compilation only executecable code is generated no platform specific code is added to that so that anywhere i can execute that.Platform specific code is added only at the time of execution.This makes java as plattform independent.  

  Was this answer useful?  Yes

Guest

  • Mar 7th, 2006
 

Byte code is the java magic . It increases the security and portability of java language.Byte code is the optimised set of instructions that are executed by the java run time environment i.e JVM .Whenever the user needs to run a program on his local machine the JVM converts the byte code into the particular machine code .So java program is platform independent .So we can download any java program from the internet and run it on our own system

  Was this answer useful?  Yes

uafshahid

  • Apr 30th, 2006
 

Other Higher level Language only has one translator(compiler or interpreter)

but java has both. The Reason being is that first compiler compiles the java code by checking the syntax and converts that code into interpreter readable code i.e. Byte Code or you can say compiler converts the source code into array of bytes called bytecode. Now this byte code is able to run under any patform because to run this code an interpreter( java runtime environment)is required. you can run this compiled code in any platform either its Linux or Windows because each provide its own runtime environment for java compiled code.

So the Java magic Byte Code makes it possible to implement platform independence and prove the statement made by Sun i.e Compile once Run Anywhere.

sekhar

  • May 8th, 2006
 

these are nice answers

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions