public class OutofBound {   
   public static void main (String[] args){
   int X[] = {0,1,2,3};
   try {
     System.out.println(X[X.length]);
   }
   catch (Exception e) {
     System.out.println (e+"\nหมายถึง \"ข้อผิดพลาด"
             + "ที่เกิดจากการอ้างถึงอาร์เรย์ที่เกินขอบเขต\"");
   }
 }
}