Computer Applications

Which of the following statements is not valid for a nested loop?

  1. The break statement can be used to terminate inner as well as outer loop.
  2. The outer loop can be terminated from the block of inner loop.
  3. The inner loop can be terminated from the block of outer loop.
  4. The inner loop repeats the execution a number of times for each iteration of the outer loop.

Java Nested for Loops

17 Likes

Answer

The inner loop can be terminated from the block of outer loop.

Reason — The inner loop cannot be terminated from the block of outer loop.

Answered By

12 Likes


Related Questions