下面哪一个是合法的数组声明和构造语句()
A:int[]ages=[100];
B:int ages=new int[100];
C:int[]ages=new int[100];
D:int()ages=new int(100);
出自:国家开放大学《面向对象程序设计》