Multiple choice technology programming languages

Which of the following cannot be used as a modifier for instance variables while defining a class?

  1. Synchronized

  2. Native

  3. Strictfp

  4. All of these

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

Instance variable modifiers: synchronized and native are method-only modifiers. strictfp applies to classes, interfaces, and methods but not to individual fields. None of these (synchronized, native, strictfp) can modify instance variables, making 'All of these' correct.