Which Is Better In Terms Of Performance For Iterating An Array #1166
Which is better in terms of performance for iterating an array?
This multiple choice question (MCQ) is related to the book/course gs gs128 Java. It can also be found in gs gs128 Java Autoboxing - Java Coding Best Practices - Quiz No.1.
Which is better in terms of performance for iterating an array?
for(int i=0; i<100; i++)
for(int i=99; i>=0; i–)
for(int i=100; i<0; i++)
for(int i=99; i>0; i++)