fork(2) 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)
  8. {
  9. byte b = 127; // -128 to 127
  10. short s = 32767; // -32768 to 32767
  11. int i = 2147483647; // -2147483648 to 2147483647
  12. long l = 9223372036854775807L; // -9223372036854775808 to 9223372036854775807
  13.  
  14. float f = 3.4028235E38; // 3.4028235E38
  15. double d = 1.7976931348623157E308; // 1.7976931348623157E308
  16.  
  17. float t = Float.MAX_VALUE;
  18. System.out.println(t);
  19. }
  20. }
Compilation error #stdin compilation error #stdout 0.08s 380224KB
stdin
Standard input is empty
compilation info
Main.java:14: error: possible loss of precision
	    float f = 3.4028235E38;             // 3.4028235E38
	              ^
  required: float
  found:    double
1 error
stdout
Standard output is empty