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 does three dots mean in java?
Why does java not support pointers?
What modifiers are allowed for methods in an interface?
how an we achive multiple inhetitance in java using interface..??
What is the purpose of lambda expressions?
What is unicode?
What do you know about the garbage collector in java?
What are keywords give examples?
What all methods are used to prevent thread execution ?
How to deprecate a method? Show it with proper example. Plz give the answer of this.Thanx in advance. mail me: tanzeem.akhtar@gmail.com
What is the argument type of main() method?
Explain the difference between arraylist and linkedlist in java?