+91-85006-22255
Given the same system performance, which of the following for loops execute faster?
X: for(int i = 100000; i > 0; i--) { }
Y: for(int i = 1; i < 100001; i++) { }
Topic: for Loop In Java
Read this topic Take test on this topic
Open In App