यह Why is this exception is not printed? Why it's showing an error?
यहाँ नीचे दिए गए कोड में का सवाल अनुवर्ती कार्रवाई क्यों ArithmeticException ट्रिगर नहीं है?अपवाद क्यों ट्रिगर नहीं किया गया है?
Its not gonna printed a=Infinity
क्या होता है:
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);
}
}
}
इसके बजाय उत्पादन इस प्रकार आता है?