KnowledgeBoat Logo
|

Computer Applications

Which of the following is an invalid loop?

  1. repeat
  2. while
  3. do-while
  4. for

Java Iterative Stmts

5 Likes

Answer

repeat

Reason — repeat is not a Java keyword. To repeat a certain action in Java, we use for, while and do-while loops.

Answered By

2 Likes


Related Questions