Tech moves fast! Stay ahead of the curve with Techopedia!
Join nearly 200,000 subscribers who receive actionable tech insights from Techopedia.
Bytecode is object-oriented programming (OOP) code compiled to run on a virtual machine (VM) instead of a central processing unit (CPU). The VM transforms program code into readable machine language for the CPU because platforms utilize different code interpretation techniques. A VM converts bytecode for platform interoperability, but bytecode is not platform-specific.
Bytecode is in a compiled Java programming language format and has the .class extension executed by Java Virtual Machine (JVM).
This term is also known as portable code (p-code) and intermediate code.
Certain programming languages like C and C++ require different platform compilers, such as those in Windows, Mac or Linux, which depend on hardware and CPU communication methods and require recompiling. Bytecode does not require recompiling or changed code because VM enables programming for cross-platform code portability. The VM provider handles platform-specific language tasks.Android and Flash are two well-known programming languages utilizing bytecode for easy interoperability.