answersLogoWhite

0

1. The byte code is intermediate language.

2. It is not understandable by user as well as processor.

3. Tjava program(.java) will get converted to byte-code(.class) after compilation.

4. It is a set of highly optimized instructions.

Advantages(impotance) of byte code:

1. It is useful for exchanging java program without disclosing the logic implemented in it to others.

2. The byte code are many times compressed version of actual Java program.Therefore,it is easy and fast to transport them over the internet.

3. Byte codes are not executable and they are platform independent.

User Avatar

Wiki User

13y ago

What else can I help you with?

Continue Learning about Engineering
Related Questions

How many bytes does a Java VM have?

A JVM, or Java Virtual Machine, creates the environment in which programs that run using Java bytecode are processed. It does not itself possess bytes or bytecode.


Where does bytecode come from java?

It is created by the Java compiler, based on the source code (the .java file).


Does the bytecode is different for every processor?

No, Java bytecode, just like the source code, is universal. The only parts that changes between different architectures are the Java Runtime Environment and its sub-components (such as the Java Virtual Machine).


What do you get when you compile a java program?

The java interpreter or JVM (Java Virtual Machine) is not able to execute the java source code for a program. The java source code first needs to be compiled into bytecode that can be processed by JVM. Producing bytecode make the program platform independent as each platform has its own JVM. It is also possible to directly write bytecode, bypassing the need to compile, but that would be tedious job and also not good for security purpose as the compiler checks for various errors in a program.


What is the software that interprets Java bytecode?

The software that interprets Java bytecode is known as the Java Virtual Machine (JVM). The JVM executes the bytecode generated by the Java compiler, allowing Java applications to run on any platform that has a compatible JVM installed. This platform independence is a key feature of Java, enabling the "write once, run anywhere" capability. Additionally, the JVM also provides features like memory management and garbage collection.


What translates a Java program into Bytecode?

The Java Runtime Environment (JRE) converts the byte code to machine language.


Why java has compiler and interpreter both?

Java is both compiled and interpreted language.First Java source code has to be translated into Byte code, which is done with the help of a compiler.But these byte codes are not machine instructions. Therefore ,in second stage this byte code has to be translated into machine code.This task is performed by an Interpreter.Hence, Java use both compiler and interpreter.


Can you compile interface in java?

In Java, you cannot compile an interface directly because interfaces themselves are not executable; they are meant to define a contract for classes that implement them. However, you can compile the interface along with the implementing classes. When you compile a Java program, the Java compiler generates bytecode for all classes and interfaces, which can then be executed by the Java Virtual Machine (JVM).


Why java interpreted?

Java is both compiled and interpreted. At first, the Java source code (in .java files) is compiled into the so-called Bytecode (.class files). The Bytecode is a pre-compiled, platform independent version of your program. The .class files can be used on any operating system. When the Java application is started, the Bytecode is interpreted by the Java Virtual Mashine. Because the Bytecode is pre-compiled, Java does not have the disadvantages of classical interpreted languages, like BASIC.


Why java called platform indeependent?

Platform independent language means once compiled you can execute the program on any platform (OS). Java is platform independent. Because the Java compiler converts the source code to bytecode, which is Intermidiate Language. Bytecode can be executed on any platform (OS) using JVM( Java Virtual Machine).


What does the byte code run on?

Bytecode runs on a virtual machine, which interprets or compiles it into machine code that can be executed by the underlying hardware. For example, Java bytecode runs on the Java Virtual Machine (JVM), while Python bytecode runs on the Python interpreter. This abstraction allows for platform independence, enabling the same bytecode to run on different systems without modification.


What do you call a Program that runs Java byte code instruction?

Get the JDK & Bluej from net and the rest will be done by them. Java byte codes are stored as *.class ; where "*" represents the class name, in your hard disk. You can download BlueJ as well as JDK from the related link.