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
What are the different collection views provided by maps?
What is jdbc api?
How do you sort a list in java?
What is the indent key?
What is meant by polymorphism?
How do you compare two objects?
Which list is sorted in java?
Can we create a class inside a class in java?
What is an immutable class?
What is string in java is it a data type?
what is difference between equals and ==?
What is numeric data type?
What is the difference between a method and a function in alice?
What are the rules for naming an array?
What is lambda expression in java?