Java OCA OCP Practice Question 1276

Question

Which of the following calls may be made from a non-static synchronized method?

  • A. A call to the same method of the current object.
  • B. A call to the same method of a different instance of the current class.
  • C. A call to a different synchronized method of the current object.
  • D. A call to a static synchronized method of the current class.


A, B, C, D.

Note

Java has no restrictions regarding which methods may call which methods, with respect to synchronization.




PreviousNext

Related