Skip to content
Sharp

Engineering Interviews · interview question

In a concurrent Java program, what is a potential issue with relying heavily on 'Stop-The-World' garbage collection events?

Multiple choiceHardchapter-20-curatedpremiumengineering-interviewsjvm-trivia
Choose one answer
Answer and explanation

Correct answer

A. They can cause significant application pause times.

Why

'Stop-The-World' events can cause significant application pause times because all application threads are paused while garbage collection runs. This can affect the responsiveness of applications, particularly those requiring high availability or real-time processing.

Test yourself on Engineering Interviews

A free test with instant, explained results. No account needed.

Start free test
All Engineering Interviews questions →