Because you have assigned the value to int type variable beyond its range.