Forum Stats

  • 3,873,719 Users
  • 2,266,633 Discussions


How many passes are there in java compiler?

Well, Talking about Java Lambda in my job, somebody who is expert in COBOL and ALGOL, ask "How many passes are there in java compiler?".

My partners and me have no idea. We have looked for information about it but we have not got lucky.

Could you help to understand how java compiler is working?


  • karianna
    karianna Member Posts: 205 Blue Ribbon
    edited Apr 15, 2018 6:45AM

    Can a moderator please move this to the appropriate Core Java / HotSpot forum?

    OP: You have the javac compiler but you also have the Just In Time compiler (Hotspot) which operates at various levels.

    javac takes a single pass, but the JIT is dynamic and is contrantly profiling your bytecode and converting the hot paths to machine code