I want to ask which piece of code is more efficient in Java? Code 1:
void f() { for(int i = 0 ; i < 99999;i++) { for(int j = 0 ; j < 99999;j++) {
I would guess that there is absolutely no difference in efficiency for any half-decent JVM implementation.