background preloader

Java interview

Facebook Twitter

Jvm - Real differences between "java -server" and "java -client"? Just-in-time compilation - Wikipedia. Applications[edit] A common implementation of JIT compilation is to first have AOT compilation to bytecode (virtual machine code), known as bytecode compilation, and then have JIT compilation to machine code (dynamic compilation), rather than interpretation of the bytecode.

Just-in-time compilation - Wikipedia

This improves the runtime performance compared to interpretation, at the cost of lag due to compilation. JIT compilers translate continuously, as with interpreters, but caching of compiled code minimizes lag on future execution of the same code during a given run. Just-in-time compilation. Is Java cross platform? Java bytecode - Wikipedia. Java bytecode is the instruction set of the Java virtual machine.

Java bytecode - Wikipedia

Each bytecode is composed of one, or in some cases two bytes that represent the instruction (opcode), along with zero or more bytes for passing parameters. Of the 255 possible byte-long opcodes, as of 2015[update], 198 are in use (~78%), 54 are reserved for future use (~21%), and 3 instructions (~1%) are set aside as permanently unimplemented.[1] The Java bytecode system does not directly support floating point operations beyond 32 bits, except indirectly via bytecodes that enable use of 64-bit and 80-bit intermediate IEEE floating point operations. Relation to Java[edit] Instructions fall into a number of broad groups:

Java - What is the difference between JVM, JDK, JRE & OpenJDK? Java Classloader - Wikipedia. When the JVM is started, three class loaders are used:[3][4] Bootstrap class loaderExtensions class loaderSystem class loader The bootstrap class loader loads the core Java libraries[5] located in the <JAVA_HOME>/jre/lib directory.

Java Classloader - Wikipedia

This class loader, which is part of the core JVM, is written in native code. The extensions class loader loads the code in the extensions directories (<JAVA_HOME>/jre/lib/ext,[6] or any other directory specified by the java.ext.dirs system property). It is implemented by the sun.misc.Launcher$ExtClassLoader class.