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

What is the difference between JDBC 1.0 and JDBC 2.0?

3161


Can you pass by reference in java?

962


What is printwriter in java?

940


How to set the permissions to a file in java?

972


What is the association?

961


What are the restrictions imposed on method overriding?

994


What about features of local inner class?

1049


What are constants?

1040


What is a method in coding?

1037


What is java thread dump, how can we get java thread dump of a program?

979


Define inheritance?

995


What is complexity in java?

1005


what are the states associated in the thread? : Java thread

1032


What access modifiers can be used for class ?

1009


What is difference between word and integer?

1062