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

Explain issues of old java date api?

528


What do you understand by downcasting?

511


What does el mean in java?

515


What if the main method is declared as private?

469


What is an actionevent in java?

450






What are tlds in java?

481


In which language eclipse is developed?

466


Why is struts used in java?

483


What is a yaml file in java?

489


What if I do not provide the string array as the argument to the method?

496


What is the difference between a jvm and a jdk?

529


What are microservices in java?

455


Which version of my browser should I use? : java security

500


What is gui in java with examples?

471


What are the rules regarding quotation marks?

463