iKrux interview question

How do you handle synchronisation in Java?