English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

4 answers

In Java the source file is compiled to byte-code i.e sequence of instructions for a virtual machine. The byte-code will be executed by the virtual machine running at the client side. Actually the virtual machine just translates the byte-code to native machine instructions and makes that native machine run it.In normal compilation, however, the output of the compiler will be the instructions for the target machine which is an actual machine (eg: for target x86). The target machine then executes these instructions directly. Thus, in short, the compiled output of java is byte-code which requires virtual machine for execution and hence is slow, whereas the ordinary compilation (like in language C) the output of the compiler is in native machine instructions which is directly executed by the target machine and hence is more fast.

2006-10-10 21:21:25 · answer #1 · answered by fsm 3 · 1 0

i'm working as a Java Developer in an IT organization so what i will understand is: a million) The code is developed in the two a basic text cloth editor(notepad) or an integrated progression ecosystem (IDE) and stored to a record with a .java extension. 2) that's then checked for syntax blunders with the aid of the Java Compiler (javac.exe). If effectively compiled, the consequent .type record is exceeded to the Java digital device (java.exe) for execution. 3) The act of compiling has a 2-fold consequence: in the beginning, the code is checked for syntax blunders and secondly, the code is converted to byte codes. The byte codes are classes for an imaginary device talked approximately as the Java digital device (JVM). This device is emulated with the aid of all Java interpreters and consequently helps you to execute a compiled Java software between distinctive systems (working structures with a JVM). with the aid of and take care. wish this helps you.

2016-12-08 12:40:33 · answer #2 · answered by casco 4 · 0 0

Java is compiled into bytecode. Java bytecode is similar to assembly language, only for the java "virtual machine".

2006-10-11 18:28:38 · answer #3 · answered by Gizmo L 4 · 0 1

java a just different type of coding then "normal" coding (C, C++, VB
ect)

2006-10-10 19:36:15 · answer #4 · answered by Anonymous · 0 1

fedest.com, questions and answers