~4 min by voice
The interviewer wants to see whether you understand how the JVM executes code (interpreter, JIT, tiered compilation) and why that makes a naive nanoTime measurement lie. The second part is whether you know the right tool (JMH) and its techniques: warm-up, forks, statistics, protection against dead code elimination.
The interviewer will ask this question and listen. Think out loud and ask for a hint if you need one. When you're done, pause or tap “That's my answer”. In about a minute, your score and the points you covered show up here.
Sign in to answerBest with headphones · ~4 min