Skip to main content

How the bytecode makes portability in java?

Java solves the problem of platform-independence by using
byte code. The Java compiler does not produce native
executable code for a particular machine like a C compiler
would. Instead it produces a special format called byte
code. Java byte code written in hexadecimal, byte by byte,
looks like this



CA FE BA BE 00 03 00 2D 00 3E 08 00 3B 08 00 01 08 00 20 08


Comments