It is normal when we divide a integer number by 0 we get arithmetic exception in java . But you will be surprised to see that the following program does not throw exception rather prints Infinity .
Please have a look at the following code and the corresponding output.
No comments:
Post a Comment