Can java object be locked down for exclusive use by a given thread?



Can java object be locked down for exclusive use by a given thread?..

Answer / Nitesh Anand

Yes, in Java, objects can be synchronized to allow only one thread to access them at any given time. This can be done using the `synchronized` keyword.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Why java is free from garbage values??

4 Answers  


can anyone explain me the concept of autoboxing?

3 Answers  


What is the difference between replace and replace all?

1 Answers  


What package is math in java?

1 Answers  


What is exception propagation?

1 Answers  


How transient variable is different from volatile variable?

1 Answers  


How do you use compareto method?

1 Answers  


What are thread priorities and importance of thread priorities in java?

1 Answers  


What is java’s garbage collected heap?

1 Answers  


What exactly is java?

1 Answers  


What is the importance of hashcode() and equals() methods?

1 Answers  


Why map is used in java?

1 Answers  


Categories