Jonathan Nguyen

Greenhorn
+ Follow
since May 18, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jonathan Nguyen

Hi,
I'm new here. Just read this strange code block, and tried it.
But I can't explain why the result is...



As we knew, the flow still come to finally block and assign r = 2 even we have return r; in try block.

But the result that test() return is 1, not 2.
If we comment out "return r;" at finally block, the result will be 2.
Confused !

Anyone can explain it ? :-)
[ May 20, 2005: Message edited by: Jonathan Nguyen ]