What is the difference between the synchronized() & static
synchronized()?
Answer Posted / namrata
when a Thread enters a static synchronized method of a
given class, then no other Thread can enter another static
synchronized method of that class. But other threads might
execute any non-synchronized method, or a synchronized
instance method.
| Is This Answer Correct ? | 6 Yes | 3 No |
Post New Answer View All Answers
What is final variable?
What is widening and narrowing in java? Discuss with an example.
Is Java a dying language?
5 Coding best practices you learned in java?
What is the meaning of course?
What is the difference between a switch statement and an if statement?
Tell me are there implementations for sorting and searching in the java libarary?
Can a vector contain heterogenous objects?
What are the super most classes for all the streams?
Discuss 2D arrays.
Hi Anyone know the model / questions of the Federal bank sample questions for the post of Specialist Officers - Programmers. Please post if anyone have..
Does substring start with 0?
Explain the scope or life time of class variables or static variables?
What are advantages of using Java?s layout managers than windowing systems?
What are scalar data types?