Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package realexception;
- public class RealException
- {
- public static void main(String[] args)
- {
- double minDouble = Double.MIN_VALUE;
- double maxDouble = Double.MAX_VALUE;
- try
- {
- double result = maxDouble / minDouble;
- System.out.print(result);
- } catch (ArithmeticException exception)
- {
- System.out.printf("%s\n", exception.getMessage());
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement