Contoh Program Try Catch
class tes
{
public static void main(String[]args){
System.out.println("start program");
try{
System.out.println(10/0);
}
catch(Exception e){
System.out.println("Terjadi kesalahan >>"+e.getMessage());
}
finally{
System.out.println("pembagian nol");
}
System.out.println("end of program");
}
}
{
public static void main(String[]args){
System.out.println("start program");
try{
System.out.println(10/0);
}
catch(Exception e){
System.out.println("Terjadi kesalahan >>"+e.getMessage());
}
finally{
System.out.println("pembagian nol");
}
System.out.println("end of program");
}
}
Ditulis Oleh : Unknown ~ Gubuk Curhat

1 komentar:
làm bằng đại học
làm bằng đại học uy tín
làm bằng đại học giá rẻ
làm bằng đại học tại tphcm
làm bằng đại học tại hà nội
làm bằng đại học không cần đặt cọc
Posting Komentar