Can a lock be acquired on a class if yes then how?
If an Employee class is present and its objects are added in an arrayList.