intermediateJVM Internals & Memory
What does the -XX:+PrintCompilation flag show you?
It prints every method as it gets JIT compiled — timestamp, compilation ID, tier level (1-4), and class/method name — useful for diagnosing which methods are hot and when deoptimization happens.
Ready to master this question?
Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.
Sign in to generate a response