•An infinite loop often results in
an overflow error.
•An overflow error occurs
when you attempt to assign a value larger than the maximum value
the variable can hold.
•In Java, an overflow does not
cause program termination. With types float and double,
a value that represents infinity is assigned to the
variable. With type int, the value “wraps around”
and becomes a negative value.