NeoXam Interview Question

How to implement synchronization in Java?