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...

This is related to threads. I have a class with synchronized
method m1(). Can I create different instances of this class
and execute the m1() for different threads?

Answer Posted / shashidhar

When a thread enters the Synchronized method the object on
this the method is called gets locked so no other thread
cannot cal that or any other method on same object.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can vector have duplicates in java?

994


What are mutable classes?

1129


What is numeric function?

1068


Can we access the non-final local variable, inside the local inner class?

1079


What is an immutable object?

1169


What is the difference between length and length () in java?

992


What is meant by class?

1058


what is thread? What are the high-level thread states? : Java thread

1323


What does %d do in java?

1089


Can an abstract class be a final class?

1042


What is number data type in java?

1068


What is incompatible types in java?

1083


Can the garbage collection be forced by any means?

1044


What is the symbol for line break?

1160


What is the difference between variable & constant?

1089