Domanda di colloquio di FICO

What are the different ways to make the java based application safe from concurrent access from different threads?