title: How many types of Locks are there in JAVA
body: <p>I was asked in an interview that how many types of locks are there in java, I knew about Synchronized(this) or synchronized method, and Reentrant Lock. Are there any other kind of locks I can acquire on an Object?</p>