what is bytecode? watz the difference between machine code
and bytecode?

Answers were Sorted based on User's Feedback



what is bytecode? watz the difference between machine code and bytecode?..

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

what is bytecode? watz the difference between machine code and bytecode?..

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

what is bytecode? watz the difference between machine code and bytecode?..

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

what is bytecode? watz the difference between machine code and bytecode?..

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

what is bytecode? watz the difference between machine code and bytecode?..

Answer / arv

what do u mean by Byte code and Machine code?

Is This Answer Correct ?    4 Yes 2 No

what is bytecode? watz the difference between machine code and bytecode?..

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

what is bytecode? watz the difference between machine code and bytecode?..

Answer / bullbull

Thankz Chitra..
How its incependent?

Is This Answer Correct ?    0 Yes 8 No

what is bytecode? watz the difference between machine code and bytecode?..

Answer / ajith

any compailer can convert the byte(user understandable form)
to machine understandable code

Is This Answer Correct ?    4 Yes 13 No

what is bytecode? watz the difference between machine code and bytecode?..

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

Post New Answer

More Core Java Interview Questions

What is thread life cycle?

0 Answers  


When will we use them?

0 Answers  


Which all r Final classes in java except string?

5 Answers   HCL,


How to make class immutable

6 Answers  


What is difference between final and finally in java?

0 Answers   Cyient,






what are the application of compiler and interpreter for source program

2 Answers  


How does java enable high performance?

0 Answers  


why marker interfaces are there in java

4 Answers   Digital Group,


Where can I find jdk in my computer?

0 Answers  


how to identify duplicate values in arraylist

2 Answers   TCS,


Why can't we override private static methods?

0 Answers  


What is Unicast and Multicast object? Where we will use?

1 Answers   Scope International,


Categories