In Java, what does the "continue" statement do?
A. Repeats the loop from the beginning
B. Skips the current iteration of a loop and continues to the next
C. Terminates the program
D. Return the output
Answer: Option B
A. Repeats the loop from the beginning
B. Skips the current iteration of a loop and continues to the next
C. Terminates the program
D. Return the output
Answer: Option B
What is the purpose of the "if" statement in Java?
A. To execute a block of code conditionally
B. To create loops
C. To declare variables
D. To define methods
A. No output
B. Error
C. Hello
D. 5
Join The Discussion