「int[] arr = new int[2]; arr[0] = 10; arr[1] = 20;」を1行で書く正しい匿名配列の生成はどれですか。

new int[]の後に中括弧で要素を列挙する形式で、サイズ指定なしの匿名配列を生成できます。