What is an objects lock and which objects have locks?
Submitted by: AdministratorAn objects lock is a mechanism that is used by multiple threads to obtain synchronized access to the object. A thread may execute a synchronized method of an object only after it has acquired the objects lock. All objects and classes have locks. A class's lock is acquired on the class's Class object.
Submitted by: Administrator
Submitted by: Administrator
Read Online Java Threads Job Interview Questions And Answers
Top Java Threads Questions
| ☺ | How would you implement a thread pool? |
| ☺ | What is a green thread? |
| ☺ | Why are wait(), notify() and notifyall() methods defined in the Object class? |
| ☺ | Why are there separate wait and sleep methods? |
| ☺ | What is a working thread? |
Top Java Programming Language Categories
| ☺ | Core Java Interview Questions. |
| ☺ | Hibernate Interview Questions. |
| ☺ | Advanced Java Interview Questions. |
| ☺ | IBM WebSphere Interview Questions. |
| ☺ | Spring Framework Interview Questions. |
