public class StoreFloat { public static void main(String[] args) { float c; double d = 1e200; c = (float) d; // Overflow } }