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
List primitive java types?
Compare java and python.
What are the different types of constructor?
How to print an arraylist in java?
what is the difference between thread and runnable types? : Java thread
What is the default access specifier for variables and methods of a class?
What is an argument java?
What is methodological framework?
Explain spliterator in java8?
what do you mean by stream pipelining in java 8? Explain
What is local class in java?
How many types of operators are there?
How to sort an array in java without using sort method?
What is array pointers ?
Where can i get Latest SUN Certification Dumps and what are the Sun Certification Codes that are available, Im new to JAVA, so please gimme info as i need to write J2EE - Core Java Certification