A loop that contains another loop is known as a ________ loop.
- double
- enclosing
- inner
- nested
In Java, a loop that contains another loop is called a "nested loop." Nested loops are used when you need to perform repetitive tasks within repetitive tasks. The inner loop is executed multiple times for each iteration of the outer loop. This nesting can be done with various loop types like for, while, or do-while.
Loading...
Related Quiz
- Which of the following is synchronized?
- In Java 8, the Stream API introduces the concept of stream processing, which is influenced by the ________ paradigm.
- In the context of garbage collection, what happens when a reference data type is set to null?
- Which class would you use for reading binary data from a file?
- What is the purpose of using getters and setters in Java?