Pregunta de entrevista de Verizon

Java Memory management, Heap & Stack, How to ensure thread safety