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 |
What is Java Reflection API? Why it’s so important to have?
What is definition and declaration?
What is a method declaration?
What is difference between identifier and variable?
Can inner class extend any class?
Why is serialization required?
Where is stringbuffer stored?
Why do we need data serialization?
What are the three parts of a lambda expression? What is the type of lambda expression?
What is the range of the char type?
How is tree Mirroring implemented?
What is the exception hierarchy in java?