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 Programmer Certification (SCJP/OCPJP) and the fly likes why output is 1 2 only? 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 » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "why output is 1 2 only?" Watch "why output is 1 2 only?" New topic
Author

why output is 1 2 only?

Minhaj Mehmood
Ranch Hand

Joined: Jan 22, 2007
Posts: 400

this is from K&B;



SCJP6 96% | SCWCD5 81% | SCDJWS5 79%
Raju Champaklal
Ranch Hand

Joined: Dec 10, 2009
Posts: 521
because once the wait is called on the thread.which has the lock of the args objcect...it keeps waiting till someone notifies to resume again and get the lock of args...........

got it?


scjp 1.6 91%, preparing for scmad
"Time to get MAD now.. we will get even later"....by someone unknown
Raju Champaklal
Ranch Hand

Joined: Dec 10, 2009
Posts: 521


i created this code to notify...i get the answer 1 2 3...but please someone check this if am right?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: why output is 1 2 only?
 
Similar Threads
Recursion Functions: The proper condition to stop it
Another Question from the book "Head First Java"
Operators
Doubt on constructors
New challenge equals == hashcode(m confused)