fork download
  1. class Ideone {
  2. public static void main(String[] args) {
  3. int p = Integer.MIN_VALUE;
  4. double d = p - Math.pow(1, 0);
  5. System.out.println(d);
  6. p = (int) d;
  7. System.out.println(p);
  8. }
  9. }
Success #stdin #stdout 0.06s 32948KB
stdin
Standard input is empty
stdout
-2.147483649E9
-2147483648