比如以下代碼: Class a{ Int [] arr =new Int[]{1,2,3}; } Class b{ a sun=new a(); sun.arr[0]=100; //此處會(huì)顯示語法錯(cuò)誤 } 查看完整描述