Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 Java Package and which package is imported by default?

0 Answers  


What is the difference between a local variable and an instance variable?

0 Answers  


Can we define private and protected modifiers for variables in interfaces?

0 Answers  


How the elements are organized in CardLayout?

5 Answers  


What comes to mind when someone mentions a shallow copy in java?

0 Answers  


What is the difference between class forname and new?

0 Answers  


Is call by reference possible in java?

0 Answers  


What is threaded programming and when is it used? : Java thread

0 Answers  


Is string thread safe in java?

0 Answers  


Under what circumstances an object reference be cast to an interface reference?

3 Answers  


What is parsing in java?

0 Answers  


What is the use join() in Threads ?

5 Answers   HCL,


Categories