Search This Blog

Tuesday, June 3, 2025

Java History - Enhanced for loop

 The Java enhanced for loop can be used to iterate through an array or a collection, without specifying the size or the number of elements in the array or collection. For example:


In which version of Java was the enhanced for loop introduced?

a) Version 5
b) Version 3
c) Version 6
d) Version 2

Created by Nancy N.
@13:17 03-Jun-2025



No comments:

Post a Comment