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


Please Help Members By Posting Answers For Below Questions

What do you mean by checked exceptions?

538


What is difference between variable declaration and definition?

515


What method is used to specify a container's layout in java programming?

542


Explain the difference between hashmap and hashtable in java?

490


Give me an example of array and linked list? Where they can be used?

557






What is tochararray in java?

502


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

598


How do you compare values in java?

547


How does enum work in java?

548


How do you convert an int to a string in java?

546


What are void pointers?

714


What is difference between synchronize and concurrent collection in java?

522


What is Garbage Collection in Java

611


What is navigable map in java?

525


What are synchronized methods ?

617