aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes concurrent acess Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "concurrent acess" Watch "concurrent acess" New topic
Author

concurrent acess

Shashank Sharma
Ranch Hand

Joined: Sep 27, 2006
Posts: 91


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


The answer in K& B Self test book is bit confusing(Page 754).
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9305
    
  17

Are A,F and H the correct answers???


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: concurrent acess