In JAVA, the virtual machine is developed in other languages, using C language assembly language. Based on this, it is JAVA itself. The virtual machine only plays a parsing role.
In addition, JAVA is not slower than the C language. When JAVA is said to be slow, it usually refers to JAVA in the 1990s. But now, in a period of excellent JAVA programs and C There is not much difference in program execution efficiency, and now JAVA can be directly compiled into executable files like C language (no virtual machine is needed, at the expense of cross-platform)
I don’t know if you have seen Excellent Programming The second way (use low-level thinking to write high-level code) No, it describes in detail the process of high-level language from writing to compilation and execution. Through the disassembly comparison of target files, it is found that C, C, JAVA, dephi and other languages are of the same quality. There is basically not much difference in the length of the object files under. The running speed of a language is closely related to whether you comply with the compiler rules when writing code. You can read this book when you have time.
The underlying implementation of Java is written in C language. Because it does a lot of encapsulation, it is slower than C language?
JVM is written in C, so a common attack on JVM is buffer overflow.
Written in c language, java6.0 has been open source.
The JVM implementation on the windows platform is written in VC. The JDK you download actually has a src.zip, which is the source code of Java.
It was originally written in C, such as the javac command, etc. The subsequent functions are written by Java itself, such as api. Now most of them are open source. If you are interested, you can check out that project, called openjdk. You can also Provide code, maybe it will be adopted in subsequent versions.
The above is the detailed content of What is the java virtual machine written in?. For more information, please follow other related articles on the PHP Chinese website!

The article discusses using Maven and Gradle for Java project management, build automation, and dependency resolution, comparing their approaches and optimization strategies.

The article discusses creating and using custom Java libraries (JAR files) with proper versioning and dependency management, using tools like Maven and Gradle.

The article discusses implementing multi-level caching in Java using Caffeine and Guava Cache to enhance application performance. It covers setup, integration, and performance benefits, along with configuration and eviction policy management best pra

The article discusses using JPA for object-relational mapping with advanced features like caching and lazy loading. It covers setup, entity mapping, and best practices for optimizing performance while highlighting potential pitfalls.[159 characters]

Java's classloading involves loading, linking, and initializing classes using a hierarchical system with Bootstrap, Extension, and Application classloaders. The parent delegation model ensures core classes are loaded first, affecting custom class loa


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SublimeText3 Chinese version
Chinese version, very easy to use

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

WebStorm Mac version
Useful JavaScript development tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment