Description:
class Test { public static void main (String args[]) { for(int i=0; 0; i++) { System.out.println("Hello Javatpoint"); } } }
Solution:
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.