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 is foreach loop in java?
Can main() method in java can return any data?
When will we prefer to use set and list in java and why?
How do you convert bytes to character in java?
What is the integer of 16?
Is jdk required on each machine to run a java program?
What is the difference between yielding and sleeping?
What is a method in coding?
What is an example of procedure?
what is daemon thread and which method is used to create the daemon thread? : Java thread
What are disadvantages of java?
Why method overriding is used?
What is the scope or life time of instance variables?
What two classes are used to read data only?
What is the benefit of abstract class?