R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which keyword is used to stop a loop in Java?

  • (A) exit
  • (B) return
  • (C) stop
  • (D) break
  • Correct Answer - Option(D)
  • Views: 7
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
`break` is used to exit a loop prematurely.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.