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

How do I convert a numeric ip address like 192.18.97.39 into a hostname like java.sun.com?

967


When can you say a graph to be a tree?

1023


What is the difference between @before and @beforeclass annotation?

1011


What restrictions are placed on method overriding?

1099


what is encapsulation in java? Explain

1045


What does a method signature consist of?

923


What do you mean by synchronized non access modifier?

941


What is hashmap and map?

957


How do you do a line break in java?

930


What is a singleton factory?

900


What is thread life cycle?

913


What are the different conditional statements?

932


What is a void in java?

1063


What is the largest data type in java?

922


Is {a, n, d} a palindrome? If you are given a random string, is it a palindrome or not?

1046