Fun with Infinite Loops in Delphi and Java

Look at the Java and Delphi source codes below. Which one will compile, and which one will run in an infinite loop? (click on 'more...' to see the answer) Java: void loop() { while (true) { try { return; } finally { continue; } } } Delphi: procedure Loop; begin while True do try Exit; … Continue reading Fun with Infinite Loops in Delphi and Java