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

Why do we use bufferedreader?

0 Answers  


List the interfaces which extends collection interface?

0 Answers  


Difference String and String Buffer

4 Answers  


What is java console application?

0 Answers  


what is stringtolennizer with example?

2 Answers   Symphony,






i need to know the site which compiles and run the java program completely in online... thank you for your reply in advance

2 Answers  


What is the do while loop syntax?

0 Answers  


Is Constructor possible in abstract class in java ?

0 Answers   HCL,


Can you explain the difference b/n abtract and interface with a good example,?In what cases we have use abtract and what case interface?

4 Answers   Satyam,


This abstract class is correct ? abstract class A { public abstract void Disp(); public abstract void B() { } public absract virtual C() { } }

0 Answers   HCL,


What is the size of int in 64-bit jvm?

0 Answers  


What are the object and class classes used for?

0 Answers  


Categories