Random
Source Code

LOP

Loss of precision. A LOP is an error when a variable in java has a value much bigger than its limit.

Public static void main urbanUp()
{
Public static void main (String args)
{
/*
*the max value of a Short primitive is 32,767
*since the variable is too big, it will not be handled
*correctly,thus Loss of precision(LOP)
*/
Short bigVariable = 76,832;
System.out.println(bigVariable);
}
}

by Scottie Davis December 11, 2009

2👍 9👎