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
How do you use spaces in java?
What are the two types of exceptions in java? Which are the differences between them?
Why is singleton instance static?
What is the difference between hashmap and hashtable in java?
What is api in java?
What is the flag in java?
what is object-oriented programming in java?
What is the nested interface?
What is method overriding in java ?
How does multithreading take place on a computer with a single cpu?
Is hashset ordered?
Explain hashset and its features?
Are maps ordered java?
How many ways can we create the string object?
What is the memory leak in java?