🎴 Flashcard Mode
programming languages Online Quiz - 133
Card1 / 10
Mastered0
Review0
QuestionClick to flip
Which of the following cannot be used as a modifier for instance variables while defining a class?
AnswerClick to flip back
A
All of these
💡 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.