Pergunta de entrevista da empresa FICO

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