How can you achieve synchronization between threads in Java?
A. By using the interrupt() method
B. By using the wait() and notify() methods
C. By using multiple catch blocks
D. By using the synchronized keyword or synchronized blocks
Answer: Option D
Join The Discussion