Is Java Class Threadsafe ????? How to make Java class Thread
safe??
Answer Posted / bojjanna
By Default java class a not tread safe, i we make a tread
safe we have three ways
1) avoiding the instance variables
2) by using Sycrinization
3) by using Syncronize block
| Is This Answer Correct ? | 19 Yes | 1 No |
Post New Answer View All Answers
In which order the iterator iterates over collection?
When do you call copy constructor?
How transient variable is different from volatile variable?
How many unicode characters are there?
What are the main uses of this keyword?
Is this valid in java ? Can we instantiate interface in java?
How does singleton class work?
What do bitwise operators do?
What are the differences between this and super keyword?
What happens when main () method is declared as private?
Is main is a keyword?
Explain about core java?
What are assembly attributes?
What is logical variable?
What is the association?