Consider the following method:
and the following instantiations:
obj1 and obj2 are accesible to two different threads and the threads are about to call the getLocks() method.
Assume the first
thread calls the method getLocks(obj1, obj2).
Which of the following is true?
Options
Select 1 correct option.
Ans: The second thread should call getLocks(obj1, obj2)
Doubt: i think that "The second thread may call getLocks() any time and passing parameters in any order." is correct. Could someone clarify my doubt.
Source: (Question ID: 1054) Enthuware
Thanks,
Gitesh
[ March 21, 2008: Message edited by: Gitesh Ramchandani ]