MCQ Single Best Answer Easy

QOutput?

int[] a = {2, 4, 6};
System.out.println(a.length);

ID: #24481 Array Introduction in Data Structure 24 views
Question Info
#24481Q ID
EasyDifficulty
Array Introduction in Data StructureTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A 2
  • B 3
  • C 6
  • D Compilation error
Correct Answer: Option B

Explanation

Answer: b) 3

Share This Question

Challenge a friend or share with your study group.