In this post you will learn one of the famous interview question for fresher that is can you tell me the difference between Object code and Byte code with examples. First Let me define
object code:
It is an compiled code generated from c/c++ programs. Operating System is participated in generating objective code.
Disadvantage:
The object code which is generated from one platform can not be executed on
other platform, The code c and c++ languages which are generating objective code are platform dependent .
Byte code:
This code is also a compiled code generated from java programs.
Operating System is not participated in generating byte code because of this reason byte code is an platform independent code.
Advantage:
The byte code which is generated from one platform can be executed on all the platforms in real time.
Examples:
irctc.com
gmail
bankof baroda...
object code:
It is an compiled code generated from c/c++ programs. Operating System is participated in generating objective code.
Disadvantage:
The object code which is generated from one platform can not be executed on
other platform, The code c and c++ languages which are generating objective code are platform dependent .
Byte code:
This code is also a compiled code generated from java programs.
Operating System is not participated in generating byte code because of this reason byte code is an platform independent code.
Advantage:
The byte code which is generated from one platform can be executed on all the platforms in real time.
Examples:
irctc.com
gmail
bankof baroda...
No comments:
Post a Comment