UNB/ CS/ David Bremner/ teaching/ java/ Overflow.java
public class Overflow{
    static void main(String[] args){
        
        long maxLong=Long.MAX_VALUE;
        double maxDouble=Double.MAX_VALUE;
        
        // Integer
        

        System.out.println(maxLong+1);
        System.out.println(2*maxLong);
        System.out.println(maxLong*maxLong);
        // Floating Point
        System.out.println(maxDouble);
        System.out.println(maxDouble*maxDouble);
        System.out.println(Double.MAX_VALUE * Double.MAX_VALUE);
        System.out.println(Long.MAX_VALUE * Long.MAX_VALUE);


    }
}