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 |
Can a class have more than one object?
What is stack explain?
How to display all the prime numbers between 1 and n (n is the number, get the input from user)
can u handle an error if u write Thowable in the catch class lise try { some errorneous code }catch(Throwable e){ ...}
int a=1; float b=1.0; System.out.println(a==b);
13 Answers CTS, Honeywell, McAfee,
What is the use of System class?
Can we have return statement in finally clause? What will happen?
What is a condition in programming?
What is difference between filereader and bufferedreader?
What are the drawbacks for singleton class?
How to convert String into primitive datatype.
Name the class that used to read objects directly from a stream?