Thahasim C
8 years ago

Which one of the following will declare an array in java and initialize it with five numbers?

A. Array a = new Array(5)

B. int [] a = {23,22,21,20,19}

C. int a [] = new int[5]

D. int [5] array

Answer: Option B


This Question Belongs to User Ask Question >> Miscellaneous

Join The Discussion

Related User Ask Questions