Multiple choice technology programming languages

Can a class be declared "synchronized"?

  1. Yes

  2. No

  3. In specific conditions

  4. Not sure

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In Java, the 'synchronized' keyword can only be applied to methods or code blocks, not to class declarations. Classes themselves cannot be declared synchronized.