Is Java Class Threadsafe ????? How to make Java class Thread
safe??
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / divya
using synchronization,immutable objects,thread safe wrappers
| Is This Answer Correct ? | 0 Yes | 1 No |
Why do we override tostring method in java?
What is incompatible types in java?
What about interthread communication and how it takes place in java?
What modifiers can be used with a local inner class?
How many types of assembly languages are there?
Explain importance of finally block in java?
What do you understand by Header linked List?
What is meant by the value of a variable?
can I implement my own start() method? : Java thread
What is number data type?
What is the difference between yielding and sleeping?
What is the range of the short type?