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
How does linkedlist work in java?
Differentiate between overriding and overloading cases?
What is the purpose of tostring() method in java?
Explain about the security aspect of java?
Is null == null in java?
What is the purpose of java?
when you will synchronize a piece of your code? : Java thread
What are the different types of multitasking?
What is the locale class in java programming?
How does enum work in java?
What is the static method?
What is mnemonic in assembly language?
What are different types of classloaders?
Differentiate between vector and array list.
What is space character in java?