title: Synchronization in java - Can we set priority to a synchronized access in java?
body: <p>Synchronization works by providing exclusive access to an object or method by putting a Synchronized keyword before a method name. What if I want to give higher  precedence to one particular access if two or more accesses to a method occurs at the same time. Can we do that?</p>
  
  <p>Or just may be I'm misunderstanding the concept of Synchronization in java. Please correct me. 
  I have other questions as well,</p>
  
  <p>Under what requirements should we make method synchronized? 
  When to make method synchronized ? And when to make block synchronized ? 
  Also if we make a method synchronized will the class too be synchronized ? little confused here.</p>
  
  <p>Please Help. Thanks.</p>