Back to quizzes
Loops Quiz
Java / Loops | Medium | 15 questions
Question 1 of 15
4 free questions left
What is the primary use of a 'for' loop in Java?
A
To repeat a block of code a specific number of times
B
To execute a block of code indefinitely
C
To handle exceptions
D
To define a method