單項選擇題

下面哪一個是合法的數組聲明和構造語句()

A.int[]ages=[100];
B.int ages=new int[100];
C.int[]ages=new int[100];
D.int()ages=new int(100);

微信掃碼免費搜題