🎴 Flashcard Mode
Java Threading and OOP Fundamentals
Card1 / 19
Mastered0
Review0
QuestionClick to flip
Which three form part of correct array declarations?
AnswerClick to flip back
A
public int a []
B
static int [] a
C
public final int [] a
💡 Explanation:
Valid Java array declarations can place brackets before or after the variable name, but cannot specify array size in the declaration. Option A (public int a []) is valid. Option B (static int [] a) is valid. Option C is invalid - cannot specify [3] in declaration. Option D (public final int [] a) is valid. Option E is wrong syntax ([] must follow type). Option F is invalid - cannot specify [3] in declaration.