Enhanced / advanced for loop in Java

————————————————————————————————————————-
Enhanced for loop is applicable only for arrays,
Arrays can be of int or string type…
let’s see the old style of writing of for loop in java.

Let’s see the advanced for loop: Syntax: for(dataType VarName : CollectionArray)

Content posted is based on learning or working experience, please leave comments if anything needs to be added or updated, discuss your queries on our facebook:qavalidation.com, Thanks!

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: