Java is not just a language concept, in addition to the definition of language, there are Java Virtual machine specifications (that is, compiled bytecode format and memory model) and memory recycling mechanism.
1, in the Java language Code layer, provides the syntax rules.
2, in the class byte code compilation, the memory model as well as the byte code instruction execution aspect, is defined by the Java Virtual Machine specification.
3, and in the memory recovery mechanism is to provide several implementations, through the Java startup parameter settings.
Above three layers:
The Java language is not here to say more.
The compilation of class bytecode and the content and memory recovery mechanisms described in the Java Virtual Machine specification are the two main components of Java performance optimization.
Many people think that Java is the interpretation of execution, so slow, so to speak, in fact, very inaccurate.
Now the mainstream commercial virtual machines provide both interpreters and compilers.
You can use parameter settings on the Java command line to perform Java bytecode using an interpreter or a compiler
-xint setting uses an interpreter, that is, interpretation mode
-xcomp setting uses compilers, that is, compilation mode
You can view it through java-version.