Given:

What is required to make the Foo class thread safe?
Select an option, then click Submit answer.
-
○
No change is required.
-
○
Make the declaration of lock static.
-
○
Replace the lock constructor call with new ReentrantLock (true).
-
○
Move the declaration of lock inside the foo method.

