Review types and loop behavior before answering.
Prepare for the Java basics quiz
Review
A boolean represents a true or false value. A for-each loop visits the elements of an array or iterable.
Try the quiz
Open the interactive Java basics quiz. Your results stay in this browser.
Common Mistakes
Check empty inputs and invalid values before applying this operation to application data. State whether a method edits shared state or returns a separate value.
java-quizzes
