wood burning stoves*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes I am also in elite group of SCJP-2.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "I am also in elite group of SCJP-2.0 " Watch "I am also in elite group of SCJP-2.0 " New topic
Author

I am also in elite group of SCJP-2.0

sundaram
Greenhorn

Joined: Nov 07, 2000
Posts: 7
hi Amit
Congrus.. please send ur material and sample question to
apaulraj@yahoo.com.I am trying my 2nd time first time by one question
I failed..
Thanks for ur help
sundara
Andrew Edmonds
Greenhorn

Joined: Nov 05, 2000
Posts: 7
Hmm, I found your 2nd Thread example very interesting. Would I be right in assuming that the synchronized method is a bit of a Red Herring. Since the two new Thread Objects have not called start() then they are not currently running Threads. Calling the run() methods of each Thread object is perfectly legal as they are JUST methods of the object, but they won't be running as part of their Threads. Therefore I assume we still have just the user Thread running and hence the two calls to run() will happen one after the other, not concurrecntly, hence the output.
If this is correct I can see how the Sun exam is really testing people, as these are not issues dealt with in the books, but something you really need to work out at the time using the knowledge you have.
Please reply if this is correct BTW.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I am also in elite group of SCJP-2.0