File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Thread's tangle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Thread Watch "Thread New topic
Author

Thread's tangle

Sanjeev Singh
Ranch Hand

Joined: Nov 01, 2006
Posts: 381
Question from K&B

Which of the following pairs of method invocations could NEVER be executing at the same
time? (Choose all that apply.)
A. x.a() in thread1, and x.a() in thread2
B. x.a() in thread1, and x.b() in thread2
C. x.a() in thread1, and y.a() in thread2
D. x.a() in thread1, and y.b() in thread2
E. x.b() in thread1, and x.a() in thread2
F. x.b() in thread1, and x.b() in thread2
G. x.b() in thread1, and y.a() in thread2
H. x.b() in thread1, and y.b() in thread2
Can anyone explains the answers.
[ November 18, 2006: Message edited by: Sanjeev Kumar Singh ]

~Sanjeev Singh<br />SCJP 1.5
Dan Polak
Ranch Hand

Joined: Nov 06, 2006
Posts: 32
Read one more time your question


<a href="http://www.dantheman.pl" target="_blank" rel="nofollow">http://www.dantheman.pl</a>
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Originally posted by Daniel Charczynski:
Read one more time your question


Well, I reckon the the answer is clearly Confusion.factor ==



Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Dan Polak
Ranch Hand

Joined: Nov 06, 2006
Posts: 32
The answers doesn't fit to question!!!
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Originally posted by Daniel Charczynski:
The answers doesn't fit to question!!!


I did notice that.
Sanjeev Singh
Ranch Hand

Joined: Nov 01, 2006
Posts: 381
Sorry ranchers,
I was meant to ask "What is/are the answers.Please justify the answers with explanations"?
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Please read your original post, together with the proposed answers, one more time.
Sanjeev Singh
Ranch Hand

Joined: Nov 01, 2006
Posts: 381
Oops exteremly sorry,
Have edited with the new choices of answers.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Thread's tangle