Bu İşte aşağıda kodunda
Why is this exception is not printed? Why it's showing an error? bir takip soru neden ArithmeticException tetiklenmez edilir? ne olurNeden istisna burada tetiklenmiyor?
Its not gonna printed a=Infinity
şu şekildedir:
class Exp
{
public static void main(String args[])
{
float d,a=1;
try
{
d=0;
a=44/d; //no exception triggered here.. why?
System.out.print("Its not gonna printed a="+a);
}
catch(ArithmeticException e)
{
System.out.println("Print exception"+e);
}
}
}
yerine çıkış geliyor?