1、new对象型,并指定初始长度

int[ ] arr = new int[5]; // 创建长度为5 的数组

2、直接初始化特定值型

int[ ] arr = {1,2,3,4};

3、new对象+初始化值型

int[ ] arr = new int[]{1,2,3,4};