Advertisement
Guest User

Untitled

a guest
Dec 1st, 2012
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.45 KB | None | 0 0
  1. package realexception;
  2.  
  3. public class RealException
  4. {
  5.     public static void main(String[] args)
  6.     {
  7.         double minDouble = Double.MIN_VALUE;
  8.         double maxDouble = Double.MAX_VALUE;
  9.         try
  10.         {
  11.             double result = maxDouble / minDouble;
  12.             System.out.print(result);
  13.         } catch (ArithmeticException exception)
  14.         {
  15.             System.out.printf("%s\n", exception.getMessage());
  16.         }
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement