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, Share the post with others if find useful, Any queries?, leave comments or discuss on our facebook:qavalidation.com, Thanks!

Leave a Reply

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

%d bloggers like this: