试题详情
单项选择题下列语句中,不能正确定义长度为4的数组a的语句是()

A、 int[] a=new int[]{1,2,3,4};

B、 int[] a= {1,2,3,4};

C、 int[] a=new int[4]{1,2,3};

D、 int[] a=new int[4]{1,2,3,4};

  • C
  • 关注下方微信公众号,在线模考后查看

热门试题