In Jaba Static synchronized method called by Static variable acquired CLass lock?

后端 未结 0 1912
清歌不尽
清歌不尽 2020-12-15 13:37

I have a small confusion. If a static instance (example" singleton instance) access static method. Does the class lock is acquired or instance lock?

Class C{

相关标签:
回答
  • 消灭零回复
提交回复
热议问题