Thursday, August 19, 2010

Multithreading: Synchronized context

Courtesy of Sun Web Learning Center


Given the methods from java.lang.Object and java.lang.Thread
Which two must be invoked from within a synchronized context? (Choose two.)


A run()
B wait()
C join()
D sleep()
E start()
F yield()
G notifyAll()

B and G are correct. These are the only methods from java.lang.Object.

No comments:

Post a Comment