This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Programming Diversions and the fly likes Fool java into printing something it should not print Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Other » Programming Diversions
Bookmark "Fool java into printing something it should not print" Watch "Fool java into printing something it should not print" New topic
Author

Fool java into printing something it should not print

Tim McGuire
Ranch Hand

Joined: Apr 30, 2003
Posts: 820

The goal of this series of puzzles (eg: http://wouter.coekaerts.be/2012/puzzle-clowns, http://wouter.coekaerts.be/2012/puzzle-dreams) is to trick java to return unexpected or explicitly forbidden results.

and..... I'm stuck. I think it has something to do with spawning new threads so that private fields can be forced into unexpected states, but I'm not sure how.

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Fool java into printing something it should not print
 
Similar Threads
Puzzle
puzzle
Puzzle
Puzzle
The swing puzzle