🎴 Flashcard Mode

Java and C Programming Quiz

Card1 / 20
Mastered0
Review0
QuestionClick to flip

Which of the following statements are true about synchronization? choose two

AnswerClick to flip back
A
A synchronized method can be overridden to be non-synchronized and vice versa
B
When a thread is executing a synchronized method, other threads can freely access non-synchronized methods of the same object
💡 Explanation:

In Java, synchronized methods can be overridden to be non-synchronized (and vice versa) because synchronization is a property of the implementation, not the method signature. Additionally, while a thread holds a lock on a synchronized method, other threads can freely access non-synchronized methods.

Change Mode