Consider the following two code segments. Code segment II is…
Consider the following two code segments. Code segment II is a revision of code segment I in which the loop header has been changed. I. for (int k = 1; k = 1; k–) { System.out.print(k); } Which of the following best explains how the output changes from code segment I to code segment II?
Read Details