File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Java 8 in Action this week in the Java 8 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
The swing puzzle
Puzzle
puzzle
Puzzle