Sunday, August 8, 2010


Courtesy of SCJP Sun® Certified Programmer for Java™ 6 Study Guide Exam (310-065) (9780071591065)
Chapter 4, Question 7

The value of d evaluates to TH, so when d loops to F, it breaks out of the for loop. Hense d1==d2 evaluates to true and "same old" is output.

No comments:

Post a Comment