12345678910



Question 1: Java Threads Which of the following can you do with the synchronized keyword:
1. Synchronise on an object
2. Synchronise on a static method
3. Synchronise around code that exists in a method of an instance of an object.

1. 1 and 2 only
2. 1 and 3 only
3. 1 only
4. 2 and 3 only