Answer Posted / sitaram
There are three type Synchronization.
1.Class level Synchronization:
Class A{
static Syn...(){
}
}
2. Block level Synchronization:
class A{
Synchronized{
}
}
3.Method level Synchronization:
class A{
Synchronize method(){
}
}
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What is the base class of all exception classes?
How to perform linear search in java?
How do you avoid global variables?
What is the difference between notify and notifyall method?
What is meant by JVM? Is JVM platform independent or not?
Can we extend private class in java?
How does remove work in java?
What does yield method of the thread class do?
Is java hard to learn?
What happens if a try-catch-finally statement does not have a catch clause to handle an exception that is thrown within the body of the try statement?
Explain the overview of UDP messaging.
What is the primitive type byte?
What are the main differences between notify and notifyAll in Java?
How do you check if a character in a string is a digit or letter?
What is functional interface in java example?