Skip to main content

for loop
0 followers
0 questions
0 posts

Vishnu Vardhan Vithanala
Python | Java | Web development | Data science | AI & ML enthusiast
Voted for D) Compiler error

It's compilation error because of the ';' after 'j++' and there are no curly braces after the for loop!

for(int j=0; j<5;j++;)Β 

Β  Β  System.out.print(j + ",");