Java View all facts Glossary Help |
| member > instance member > instance method > synchronized instance method |
| synchronized instance method comparison table | |||||
| Subject | is a kind of | is a subtopic of | have example | has definition | run until |
|---|---|---|---|---|---|
| instance method | method | Methods | public float credit(float amountToCredit) { | Any method that is invoked with respect to an instance of a class | |
| synchronized instance method | instance method | Threads | Only one thread will be allowed inside this method at oncepublic synchronized void countMe() { | Java obtains a lock on the instance that invoked the method, ensuring that no other thread can be modifying the object at the same time |
Next instance method: abstract method Up: instance method Previous instance method: sleep