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

How does linkedlist work in java?

989


Differentiate between overriding and overloading cases?

1164


What is the purpose of tostring() method in java?

1231


Explain about the security aspect of java?

1012


Is null == null in java?

1163


What is the purpose of java?

1049


when you will synchronize a piece of your code? : Java thread

1068


What are the different types of multitasking?

1146


What is the locale class in java programming?

1153


How does enum work in java?

1067


What is the static method?

1124


What is mnemonic in assembly language?

1117


What are different types of classloaders?

1073


Differentiate between vector and array list.

1114


What is space character in java?

1174