Java Design Patterns Question:

Explain about locks?

Tweet Share WhatsApp

Answer:

Lock is known to be the safest and the basic message control mechanism used in object oriented mechanism. This is used to block the usage of methods while another method is in progress. The only safest way to use lock mechanism is to fully synchronized objects.

Download Java Patterns PDF Read All 29 Java Patterns Questions
Previous QuestionNext Question
Explain about fully synchronized objects?Explain about semaphores?