What is the result? 12/20/2019 – by Mod_GuideK 6 Given the code fragment: What is the result? A. 3142 B. 2413 C. 1324 D. 4231 SHOW ANSWERSCorrect Answer: D Explanation/Reference: Explanation: Download Printable PDF. VALID exam to help you PASS.
4231
.length – 1 means the last index
>= 0 means zero inclusive
D:
# javac Test.java
# java Test
4231
answer:D
answer is “B”. 2413
answer is D