Enhanced For Loop

Enhanced for loop was introduced later version of the Java.  It simplifies fetching elements from a collection or an array.  This minimizes the programming errors and also easier to understand.


 

 

Last modified: Sunday, 3 January 2021, 9:23 PM