Q: The statement to stop the execution of a construct:
-
A
System.exit(0)
-
B
break
-
C
stop
-
D
end
B
Answer:
B
Explanation:
Explanation:
The break statement is used to stop the execution of a loop or switch construct.
System.exit(0) stops the entire program, not just a construct.
Related Topic:
Share Above MCQ