Java is neither purely interpreted nor naively ahead-of-time compiled—HotSpot runs cold code immediately in the Interpreter while profiling hot loops and types, then feeds real runtime profile data into C1 and C2 JIT compilers to emit native machine code that often rivals C++!
More lessons in Complete Core Java