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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the finalize method do?

839


When is the finalize() called? What is the purpose of finalization?

844


Why do we use predicate in java?

828


Can a class have multiple constructors?

785


For class CFoo { }; what default methods will the compiler generate for you>?

860


Can we store variables in local blocks?

1068


How can we access some class in another class in java?

779


Is Java a dying language?

823


What are methods of a class?

771


What is difference between static class and normal class?

773


Why is a constant variable important?

707


What is a char in java?

762


What is runtime polymorphism or dynamic method dispatch?

779


How use .contains in java?

922


What is numel matlab?

1022