fork download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5. class Ideone
  6. {
  7. public static void main (String[] args) throws java.lang.Exception
  8. {
  9. Double newValue = new Double(Math.pow(2, 10000)); // crash
  10. if(newValue.isInfinite()) System.out.println("INF");
  11. double Value=Math.pow(2, 10000);
  12. if(Double.isInfinite(Value)) System.out.println("INF");
  13. }
  14. }
Success #stdin #stdout 0.07s 380160KB
stdin
Standard input is empty
stdout
INF
INF