hi friends ,
i am confused with the statements.
in jls it is mentioned that decimal integer or factorial values give compile time error if the value is greater than the range
of data type but then
how come following program get compile without error
public class
test {
public static void main(
String args[])
{
int i = 1000000 ;
System.out.println(i*i);//here result is 1000000000000 which
which is out of integer range
}
}
rahul