Java Design Patterns Question:

Download Job Interview Questions and Answers PDF

Explain about locks?

Java Patterns Interview Question
Java Patterns Interview Question

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 Interview Questions And Answers PDF

Previous QuestionNext Question
Explain about fully synchronized objects?Explain about semaphores?