Question d’entretien chez Moovit

What loop is more performant in Java: 1. An index loop with a get() call. 2. Iterator loop. The data structure was List

Réponse à la question d'entretien

Utilisateur anonyme

6 oct. 2021

is it an Iterator Loop? first option does i actions in the i-th iteration, while iterator does only one action pare iteration