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 the intersection and union methods?
What is the maximum size of a string in java?
How to display all the prime numbers between 1 and n (n is the number, get the input from user)
What is use of a abstract variable?
What is module in project?
What is difference between variable declaration and definition?
Is age discrete or continuous?
Can try statements be nested?
What is ide with example?
What is Applet Stub Interface ?
Does java arraylist maintain insertion order?
Write a function to find out longest palindrome in a given string?