Pergunta de entrevista da empresa Moovit

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

Resposta da entrevista

Sigiloso

6 de out. de 2021

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