 Just-in-time (JIT) compilers that compile byte-codes to machine code during runtime were introduced from an early stage.Java itself is platform-independent and is adapted to the particular platform it is to run on by a Java virtual machine for it, which translates the Java bytecode into the platform's machine language.Programs written in Java have a reputation for being slower and requiring more memory than those written in C++.