Question library
Questions from real interviews. Drill any of them by voice in a couple of minutes, with an interviewer, a score and feedback.
What happens to Java code from the moment you write it to the moment it runs? And what is a JIT compiler?JuniorTell me how JIT compilation works in HotSpot and what optimizations it performs. How does that affect the way you write and measure performance-critical code?SeniorYou have a Java service with a 30 GB heap, and the business is complaining about long pauses. How would you choose and tune the garbage collector?SeniorYour Java service has to respond with a p99 of no more than ten milliseconds. How would you design it with the JVM's characteristics in mind, and how would you find the source of latency if the target isn't being met?Senior