public class DivByZero {   
   public static void main (String[] args){
   int X = 5;    int Y = 0;
   try {
     System.out.println (X / Y);
   }
   catch (Exception e) {
     System.out.println(e);
     System.out.println("หมายถึง \"ข้อผิดพลาดที่เกิดจาก"+
             "การหารด้วยศูนย์\"");
   }
 }
}