What is the difference between the synchronized() & static
synchronized()?
Answer Posted / sitaram
synchronizing is the process of ensuring the share resources
will be accessing only one thread at a time. There are two
types of synchronizations.
1. static synchronized(Class level)
2.synchronized.(Object Level).
Is This Answer Correct ? | 12 Yes | 1 No |
Post New Answer View All Answers
What do you mean by checked exceptions?
What is difference between variable declaration and definition?
What method is used to specify a container's layout in java programming?
Explain the difference between hashmap and hashtable in java?
Give me an example of array and linked list? Where they can be used?
What is tochararray in java?
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? Or extending thread class or implementing runnable interface. Which is better? : Java thread
How do you compare values in java?
How does enum work in java?
How do you convert an int to a string in java?
What are void pointers?
What is difference between synchronize and concurrent collection in java?
What is Garbage Collection in Java
What is navigable map in java?
What are synchronized methods ?