This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
Hi I am new to this site..Please help me with the question below... What does "this" references. For example synchronize( RAndomCharacters.this ) and RandomCharacters.this.wait(); and this.a I am confused by all these... [ February 24, 2003: Message edited by: Arnold Tieu ]
Hi Arnold, this references any object created by new HelloAnimThreadFirst() or any other constructed object for that matter. The code you posted is incorrect because the line new Thread(this) would have to be inside the class. Michael Morris [ February 24, 2003: Message edited by: Michael Morris ]
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher