what is bytecode? watz the difference between machine code
and bytecode?
Answers were Sorted based on User's Feedback
Answer / chitra
JAVAC compiles the java file and converts the program in
bytecode(machine independent). Later JVM refers this and
converts the bytecodes in machine code.
Is This Answer Correct ? | 43 Yes | 11 No |
Answer / srinivasa
Byte code is executed by JVM means converts the code into
machine understandable language.Machine code is the code
used by the operating system in the form of 0 and 1
Is This Answer Correct ? | 19 Yes | 2 No |
Answer / aman mittal
In JAVA, when source code(.txt file ) is compiled it turns
into byte code(.class file), actually this byte code is
something assembly instructions in JVM assembly and this
byte code is platform independent(as we can run our .class
code on any o/s, using specified JRE for that o/s.).
A byte code compiled by a compiler can run on any o/s like
windows, linux, unix, mac etc...
Machine code refers to a data that can be executed by a
specific computer having particular processor & o/s.(JRE
execute this data on specific o/s.)
JRE is provide by different o/s vendors.
Aman Mittal
09457267173
Is This Answer Correct ? | 10 Yes | 4 No |
Answer / raman
byte code is machine indepent code that is executable at any
machine
machine code is macine dependent code that is understandable
by computer
Is This Answer Correct ? | 8 Yes | 4 No |
Answer / lucky
Byte code:
----------
Byte code in java is .class file. when the java program is compiled we will get this .class file.This is machine dependent code.
Machine code:
-------------
Java interpreter converts the byte code into machine code which is understandable by the operating system's cpu.Machine code will be in the form of 0's and 1's.
Is This Answer Correct ? | 1 Yes | 2 No |
Answer / ajith
any compailer can convert the byte(user understandable form)
to machine understandable code
Is This Answer Correct ? | 4 Yes | 13 No |
Answer / narender_niit
bytecode is the code which is stored in a .class files
which is understandable by jvm ie java virtual
machine ..let me expalin more wen we write a code in
notepad it is converted into byte code which is stored
in .class files taht is executable by jvm to generate the
output..
machine code:machine code is a high level language this is
the code which is understandable by us.that is the output
of the code which is understadable by us..
Is This Answer Correct ? | 16 Yes | 38 No |
What is a vararg?
What is the difference between class & object?
What is n in java?
How can a gui component handle its own events in java programming?
What are examples of modifiers?
What is java abstraction with example?
why interfaces are faster than abstract classes?
Write a program to reverse array in place?
How do you trim a space in java?
When we will use an Interface and Abstract class?
What is private static in java?
Is null false in java?