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

Why we use static and synchronized in method for single
thread model
example:
public static synchronized add(){}

Answer Posted / sameer

Ststic means it belongs to class.When u call a syncronized
method u keep the luck of that class.

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is exception handling in java?

999


What is a null class?

941


What are the differences between Java 1.0 and Java 2.0?

2225


Can you explain the private protected field modifier?

985


Is there any difference between nested classes and inner classes?

1054


What is independent and dependent variables in research?

826


What is method in java with example?

913


Can each java object keep track of all the threads that want to exclusively access it?

924


How do you declare a string variable?

979


Compare java and python.

947


What is hash code collision?

1023


What is difference between Heap and Stack Memory?

1002


What is the largest number a double can hold?

999


What is string pooling concept?

1019


Is it possible for a yielded thread to get chance for its execution again?

910