單項選擇題

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

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

微信掃碼免費搜題