If you try to assign a constant that is longer that the maximum size of the int
you'll face a compiler error, and if you try to do this at runtime with a variable or some arithmetic manipulations that the compiler cannot detect the exceedance, it will over flow.
E.g. :
int i = Integer.MAX_VALUE;
i = i+1;
System.out.println(i);
output: -2147483648