My question is that if there is a code,
class loop
{
public static void main()
{
for (int i=0; ; i++)
{
System.out.println(i)
}
}
}
The integer variable i have a max value of 2147483647 (according to google) so will the code run 2147483647 times? If so then it would not be an infinite loop.
Can anyone answer my query?