What is the output of the following Java program no. 3?

  1. class Test
  2. {
  3.     public static void main (String args[])
  4.     {
  5.         for(int i=00; i++)
  6.         {
  7.             System.out.println(“Hello Javatpoint”);
  8.         }
  9.     }
  10. }

The above code will give the compile-time error because the for loop demands a boolean value in the second part and we are providing an integer value, i.e., 0.