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 |
Write code of any action class?
What is the difference between serializable and externalizable interface?
What are java packages?
What is final class?
What are the advantages of passing this into a method instead of the current class object itself?
What about interrupt() method of thread class ?
Why Do I Get A "permission Denied" Error After Downloading The .jnlp Java Launcher For The Vkvm?
What does it mean that strings are immutable?
What is the difference amongst jvm spec, jvm implementation, jvm runtime ?
What do u mean by method and also contructer in java ?
what is platform independence in java?
What happens when main () method is declared as private?