in Education by
What are the two ways to iterate the elements of a collection? Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
Using Iterator is still very popular way to iterate over collections, mainly due to addtional methods it provides to manipulate the collection elements. It uses the standard for loop invented in the early 1970s in the C language. Traditional for loop is most appropriate when dealing with indexed collections such as list.

Related questions

0 votes
    Process of placing elements from a collection in some kind of order Select the correct answer from above options...
asked Dec 17, 2021 in Education by JackTerrance
0 votes
    13. What are the two ways of creating a Publication ? Select the correct answer from above options...
asked Dec 22, 2021 in Education by JackTerrance
0 votes
    The two ways of entering a cell reference in a formula are a) by typing and b) by pointing.Explain the ... between the two methods Select the correct answer from above options...
asked Dec 19, 2021 in Education by JackTerrance
0 votes
    The two ways of entering a cell reference in a formula are a) by typing and b) by pointing.Explain the ... between the two methods Select the correct answer from above options...
asked Dec 19, 2021 in Education by JackTerrance
0 votes
    The two ways of entering a cell reference in a formula are a) by typing and b) by pointing.Explain the ... between the two methods Select the correct answer from above options...
asked Dec 18, 2021 in Education by JackTerrance
0 votes
    ….and….are two ways of entering data in calc a) Right and left. b)rows and columns. c) Constants and formulas Select the correct answer from above options...
asked Dec 13, 2021 in Education by JackTerrance
0 votes
    1. Basically, a computer can be classified into two ways: 1. According to the Purpose 2. According to the ... data, and information, Select the correct answer from above options...
asked Dec 10, 2021 in Education by JackTerrance
0 votes
    Which is the new method introduced in java 8 to iterate over a collection? (a) for (String i : StringList) ... & Miscellaneous of Java Select the correct answer from above options...
asked Feb 23, 2022 in Education by JackTerrance
0 votes
0 votes
    BRAIN DEVELOPER A. Fill in the blanks: 1. 2. A. is an organised way of storing information, A relational ... Syntax Kips 18 File Select the correct answer from above options...
asked Dec 7, 2021 in Education by JackTerrance
0 votes
    A _____________ is a collection of multiple data which are stored in related fields that can be treated as a single unit. Select the correct answer from above options...
asked Nov 27, 2021 in Education by JackTerrance
...