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

Can we use synchronized block for primitives?

1066


What is anagram number?

942


What is the difference between numeric and integer?

1006


What is nested class?

997


What is the main purpose of java?

1093


How does enum work in java?

1015


How to sort elements in a parallel array in java?

886


Is sizeof a preprocessor?

986


How many techniques can be employed to create a string object?

1097


What is java full form?

1022


Explain the reason behind ending a program with a system.exit(0)?

1079


What are advantages and disadvantages of OOPs?

1133


What is oop in java?

1047


How are java objects passed to a method and what are native methods?

1073


What is hashing principle in java?

1020