How the O/P is 4...Won't it be an endless while loop?? The break inside the if loop will just come out of the if loop right and the while loop will still be running...Please help me guys.
Thanks in advance.
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
"break" will take you out of switch, while, do, or for statements, not out "if" statements. So it will break out of "while". [ November 10, 2006: Message edited by: Satou kurinosuke ]