What is the difference between Object Code and ByteCode?

Why do people keep saying that bytecode is like the
intermediate of source and object code?

Also, which is better/commonly used and why?
Please keep in mind that I am a beginner, please keep all
terminology fairly simple. Thanks!

Answer Posted / harika.thota001@gmail.com

If it is a object Code, it can be interpreted only by the OS(Operating System) by which the object code is compiled.

If it is a Byte Code, it can be interpreted by any OS. For Example, even though the Byte Code is interpreted by Windows OS we can run the code in any other OS

C emerges Object Code. Java is a Byte Code

People keep saying that bytecode is like the intermediate of source and object code because...bytecode runs on JVM which is like an intermediate to make it compatible to any OS which inturn made JAVA a platform independent.

bytecode is more commonly used.

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is lambda expressions action func and predicate?

451


What kind of thread is the garbage collector thread?

507


What is meant by framework in java?

509


What is stateless object in java?

512


What is @qualifier in java?

485






Can I have multiple main methods in the same class?

481


What is phantom memory?

548


What are the advantages of lambda functions?

475


Is java singleton thread safe?

476


Write a program using call by refernce for two different classes to explain to print whether a given number is automorphic or not.

1365


Explain different way of using thread?

586


What does public static void main(string[]) mean?

531


Explain suspend() method under thread class>

648


Why java?

538


What is lsdou? : java security

534