Informatica Interview Question

How is synchronized key word used in Java?