I have a question, I am always asked this in the interviews multiple times--
How is synchronization implemented in java.. I have answered-- using trylock() mechanism using wait, notify ,and notifyAll() methods in java using synchronized blocks using synchronized for class and object level using mutexes for synchronization using re-entrant locks
Are there any better answers to this?/