Can each Java object keep track of all the threads that want to exclusively access to it?

Answer : 
Yes. Use Thread.currentThread() method to track the accessing thread.

0 comments:

Post a Comment

 
Copyright © Interview Questions and answers - Blogger Theme by BloggerThemes & freecsstemplates - Sponsored by Internet Entrepreneur