Home > Java > JavaBase > body text

What is java written in?

angryTom
Release: 2019-11-15 11:23:38
Original
4219 people have browsed it

What is java written in?

What is java written in?

JAVA itself is a programming language, which is compiled and generated The file runs on the JVM (java virtual machine). JVM is developed by c language and assembly language. Based on this is java, and the virtual machine plays the role of parsing and execution.

JVM is the biggest feature of the Java language. The advantages and disadvantages of Java are also due to JVM technology. JVM is a virtual computer system that can run Java bytecode. It has an interpreter component that enables communication between Java bytecode and the computer's operating system.

Also includes a set of registers, a stack, a garbage collection heap and a storage method field. The JVM shields the information related to the specific operating system platform, so that the Java program only needs to generate bytecode to run on the Java virtual machine, and it can run on multiple platforms without modification. This is also the biggest feature of Java, its cross-platform nature, that is, it can be written in one place and run anywhere.

When the JVM executes bytecode, it actually ultimately interprets the bytecode into machine instructions for execution on the specific platform. Compiling the instruction set for a virtual machine is very similar to compiling the instruction set for a microprocessor. This is one of the most criticized aspects of Java. Running on the JVM is of course not as fast as running directly on the operating system. So some people always say that Java's running speed is not as fast as C language.

php Chinese website, a large number of free Java introductory tutorials, welcome to learn online!

The above is the detailed content of What is java written in?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!