answersLogoWhite
Java Programming
Web Browsers
JavaScript

Is java interpreted?


Top Answer
User Avatar
Wiki User
Answered 2008-02-29 19:41:09

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.

012
๐Ÿ™
0
๐Ÿคจ
0
๐Ÿ˜ฎ
0
๐Ÿ˜‚
0
User Avatar

Your Answer

Still Have Questions?

Related Questions

Is java script a interpreted language?

yes


Where can you get Java script?

You cannot get JavaScript, which is different from Java. Javascript is a interpreted web page language, and the interpreter is included inside your browser. Java, on the other hand, is a compiled/interpreted/virtual language to build applications.


Why does java need both compiler and interpreter?

Java source code is compiled down into Java bytecode. This bytecode is then interpreted by the Java Virtual Machine during execution.


Why java is called interpreted language?

java used mostly interpretor to convert bytecode to machine dependant code.


Interpreter and compiler language?

Java Language is both Interpreted and Compiled.


Why is C a compiled programming language?

Any language that uses a compiler to generate the machine code is a compiled language. By contrast, interpreted languages generate the machine code at runtime. Some languages, like Java, are both compiled and interpreted; the source code is compiled to Java byte code which is then interpreted by the Java virtual machine at runtime.


Is Java or C plus plus faster?

C++ is (usually) faster than Java, because C++ is compiled object code, and Java is interpreted byte code.


Why the java hybrid language?

because it uses party interpreted and complied language.


Can vista read java?

Yes. Due to Java being an interpreted language, almost any system can read it. In fact, I'm running vista with java right now.


Which is good- c plus plus or java?

Basically both are good at their places, can't be interchanged. But Java is best if we compare both because Java is much more secure, robust and portable as compared to C++ as a Java program is first converted to byte code and then interpreted. Also C++ program is compiled all at once but Java program is interpreted one instruction at a time thus making it more secure .


Why java interpreted?

Java is interpreted (or actually translated into JVM byte code) to allow the resulting class to be executable by any computer that has a compatible JRE installed on it. Contrast this to a C compiler, where the result is machine specific. Java byte code is also machine specific - that machine, however, is a virtual machine provided by the JRE.


Is java compiled language or interpreted language?

Java is both a compiled language and an interpreted language.No, technically, Java is solely a compiled language. Java source code is ALWAYS compiled (via javac or similar program) down into a bytecode.The confusion may be that the Java bytecode is usually run on a Java Virtual Machine implementation, which both compiles the bytecodes to native machine code AND also runs as an interpreter for some java bytecode. The JVM is form of a system emulator, which is NOT specificly related to the Java language itself. That is, it is entirely possible to make a hardware machine (which has already been done) which runs Java bytecode natively, directly on the hardware.Do not confuse the Java language with Java bytecode.


WHO convert high level program in to machine language programs?

Nobody. Conversion from high-level encoding to low-level encoding is achieved via software, either by a compiler (compiled languages) or by an interpreter (interpreted languages). Some languages, such as Java, use both; compiling to Java byte code which is then interpreted by the Java virtual machine.


Is java a compiler or interpreter language?

Java uses both a compiler and interpreter. It is both compiled and interpreted.Java compiler (javac) converts java code into Bytecode.Just-In-Time compiler converts Bytecode to more specific instructions.Interpreter executes Bytecodes.


Executon steps in java?

First of all the compiler converts our source code into byte code ,this is done by "javac" compiler.then we use interpretor that is the"java interpretor" for making our byte code executed.thats y java is called as an compiled and interpred language.by that way our java program will be interpreted. First of all our source code vl b converted into byte code by da java compiler named "javac" ,then dt byte code vl be executed by da interpretor named "java" interpretor. These are execution steps in java dts y v call java as a compiled and interpreted language.


Why is java byte code used?

The whole idea of Java - or one of the ideas, at any rate - is that it can be run anywhere. So, instead of compiling for a specific processor, the Java compiler compiles for a "generic processor", called the Java Virtual Machine. The code thus generated is called "bytecode". It can be interpreted (i.e., run) by a Java Virtual machine, these are available on different platforms.The whole idea of Java - or one of the ideas, at any rate - is that it can be run anywhere. So, instead of compiling for a specific processor, the Java compiler compiles for a "generic processor", called the Java Virtual Machine. The code thus generated is called "bytecode". It can be interpreted (i.e., run) by a Java Virtual machine, these are available on different platforms.The whole idea of Java - or one of the ideas, at any rate - is that it can be run anywhere. So, instead of compiling for a specific processor, the Java compiler compiles for a "generic processor", called the Java Virtual Machine. The code thus generated is called "bytecode". It can be interpreted (i.e., run) by a Java Virtual machine, these are available on different platforms.The whole idea of Java - or one of the ideas, at any rate - is that it can be run anywhere. So, instead of compiling for a specific processor, the Java compiler compiles for a "generic processor", called the Java Virtual Machine. The code thus generated is called "bytecode". It can be interpreted (i.e., run) by a Java Virtual machine, these are available on different platforms.


Where is a program temporally stored for execution?

All programs must be loaded into memory (e.g., RAM) in order to be executed. Compiled programs can be loaded directly since they consist of native machine instructions, but interpreted programs must be translated by a runtime program. E.g., Java is an interpreted language which compiles to byte code which must be interpreted by the Java Virtual Machine implementation at runtime.


How does java work?

A Java compiler takes the imputed code and compiles byte-code. This code is then interpreted by the Java interpreter. This compiling method allows the code to versatile, working on cellular devices, the web browser, and on your hard-drive.


How java supports platform independency?

A compiled Java program (extension .class) is interpreted by a special program, the "Java Virtual Machine" (JVM). The JVM is available on many platforms. (Obviously somebody had to develop it separately for different platforms.)


Why java is platform independent explain by diagram?

Java is a platform independent language becoz of the bytecode magic of java. In java, when we execute the source code...it generates the .class file comprising the bytecodes. Bytecodes are easily interpreted by JVM which is available with every type of OS we install.


How java script is advance of java?

Usage of JavaScript is different from Java. Though both of them are interpreted language, Javascript is used as script language for client side programming in websites. There isn't much of a relation between java and javascript: if you go by history, the java prefix was added just to gain the royalty of Java. Both are different in syntax, semantics and usages.


Why 2 files in java program?

There are programming languages in which the source file is read and interpreted directly, but those are usually slower than when the program is compiled, to an EXE, or as in Java, for a virtual machine.


What is java language in computer?

Java is a computer programming language. Java programs can be interpreted (the computer compiles and runs the program as the code is executed) or it can be pre-compiled into bytecode (the computer doesn't have to compile it as soon as it is run, so time is saved.)


Advantages of C over C plus plus and java?

C can be faster than C++ programs, and definitely faster than Java, since Java is primarily interpreted. C is also somewhat less rigid in definitions as well, not as tightly structured as either C++ or Java can be.


Is java compiler or interperter or both explain?

Java has both a compiled and an interpreted stage.1) The programmer writes his source codes (.java extension); a compiler will compile this to bytecode (.class extension).2) When the end-user runs the .class program, the JVM (Java Virtual Machine) will interpret this.


Still have questions?