wat is class level lock and object level lock
Answer Posted / michael selvan
Class Lock - If a static method is marked as Synchrnozied
and called by a Thread, the whole Class will be locked
until the method execution completed.
Note : If we declare as a any static variables or methods
those will be stored in class area. So, if the method is
synchronized static . It'll lock the complete class.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is a container in a gui?
Is constructor inherited?
How are observer and observable used in java programming?
Difference between operator overloading and function overloading
What are jee technologies?
Explain the difference between extends thread vs implements runnable in java?
What is the difference between state-based unit testing and interaction-based unit testing?
Which is better stringbuilder or stringbuffer?
Explain java coding standards for methods?
What language is pass by reference?
What does nextint () do in java?
What is super keyword explain with example?
What does file separator do in java?
What is consumer in java?
Differece between class and generic class?