Computer Science, asked by arjun9955, 1 year ago

write short note on bytecode

Answers

Answered by Anonymous
1
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.

Techopedia explains Bytecode

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.


Answered by SohamKundu012
0

Bytecode is a set of instructions that are understood by the JVM .

JVM is an abstract machine designed to be implemented on top of existing processors .

It helps to convert the given code in JAVA to bytecode and then we can intrepret the code for a given platform by using an interpreter .

This interpreter is called JVM .

Now the Bytecode is independent of hardware .

Similar questions