MCQ Single Best Answer Easy

QOutput?

int[] a = {10, 20, 30};
System.out.println(a[3]);

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

Choose the Best Option

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

  • A 30
  • B 0
  • C ArrayIndexOutOfBoundsException
  • D Compilation error
Correct Answer: Option C

Explanation

Answer: c) ArrayIndexOutOfBoundsException

Share This Question

Challenge a friend or share with your study group.