EPAM Systems Interview Question

What is the use of synchronized keyword in java?