★ array creation and access

//declare an array variable
int[] highScores;
// create the array
highScores = new int[5];
// declare and create array in 1 step!
String[] names = new String[5];

which of the following creates an array of 10 doubles called prices?

A) int[] prices = new int[10];

B) double[] prices = new double[10];

C) double[] prices;

D) double[10] prices = new double[];

<aside> 🧾 note: array elements are initialized to default values