General Programming Rule2:Use for-each over for loop For-each loop also called enhanced for-loop , it hildes the initializer variable and index variable – reducing scope of error. Share this: Share on X (Opens in new window) X Share on Facebook (Opens in new window) Facebook Like Loading... Related Pages: Page 1, Page 2, Page 3, Page 4, Page 5, Page 6, Page 7, Page 8, Page 9, Page 10, Page 11, Page 12, Page 13 Published by sevanand yadav software engineer working as web developer having specialization in spring MVC with mysql,hibernate View all posts by sevanand yadav