Save up to 35%

What is a for-each loop?

July 29th, 2009 by uCertify Leave a reply »

A for-each loop is an enhanced for loop. It used to iterate over arrays and collections. This feature was added to Java to make the access and retrieval of elements of arrays and collections faster. The syntax of a for-each loop is as follows:

for(type itrvar: collection)
{

}

where, itrvar is the variable that iterates through the elements of the collection.

  • Download free practice test for CIW Master CIW Enterprise Developer exam.
  • Click here to get free scbcd SCBCD exam practice questions.
  • Best exam simulation SUN scdjws download free trial.
  • Click here to get free scja SCJA exam practice questions.
  • Best exam simulation SUN scjp download free trial.
  • Click here to download scjp-5-0 test study guide and practice question.
  • Best exam simulation SUN scmad download free trial.
  • Pass SCWCD in first attampt.
  • Click here to download CX310-019 test study guide and practice question.
  • Get certified in first attempt download CX310-055 - Java 5.0 simulation.
  • Click here to download CX310-056 test study guide and practice question.
  • Click here to download CX310-065 test study guide and practice question.
  • Download free practice test for SUN SCJP Upgrade exam.
Like this article? Share it with others
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.
  • Share/Bookmark
Advertisement

Leave a Reply

uCertify.com | Our Company | Articles | Contact Us | News and Press Release | uCertify India | Entries (RSS)
MCSE: MCSA, MCTS, MCITP    JAVA Certification: SCJP, SCWCD    Cisco Certification: CCNA, CCENT    A+, Network+, Security+ Project+
Oracle Certification: OCP 11g, OCP 10g, OCA 11g, OCA 10g    CIW foundation    EC-212-32,    CISSP    Photoshop ACE CS4    Adobe Flash ACE, PMP, CAPM
© 2008 uCertify.com. All rights reserved. All trademarks are the property of their respective owners.