What is the difference between the synchronized() & static
synchronized()?

Answers were Sorted based on User's Feedback



What is the difference between the synchronized() & static synchronized()?..

Answer / 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

What is the difference between the synchronized() & static synchronized()?..

Answer / 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

More Core Java Interview Questions

What is qualitative variable?

0 Answers  


Can we access instance variables within static methods ?

0 Answers  


What are the two basic ways in which classes that can be run as threads may be defined?

0 Answers  


diff b/w sleep(1000) and wait(1000)?

4 Answers   Huawei,


what is Vector class?

2 Answers  






Discuss different types of errors that generally occur while programming.

0 Answers   Amdocs,


Is vector thread safe in java?

0 Answers  


Are generics important java?

0 Answers  


Is java a super set of javascript?

0 Answers  


What is methods in java?

0 Answers  


What is final int?

0 Answers  


What is difference between core java and java ee?

0 Answers  


Categories