What is the difference between using a break in a for loop and using a continue in a for loop?

What will be an ideal response?


A break statement will take you out of the loop completely. A continue statement will force the next iteration of the loop to be executed.

Computer Science & Information Technology

You might also like to view...

Facts about people, events, things, or ideas are called:

A) information. B) specifics. C) statistics. D) data.

Computer Science & Information Technology

Accessor that returns month

What will be an ideal response?

Computer Science & Information Technology

A stack overflow error occurs when ____.

A. a user terminates a program early B. the Java interpreter runs out of memory C. an exception is thrown D. an algorithm reaches its stopping state

Computer Science & Information Technology

Describe a situation in which it would be beneficial to add a total row.

What will be an ideal response?

Computer Science & Information Technology