Is Java Class Threadsafe ????? How to make Java class Thread
safe??
Answer Posted / 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 |
Post New Answer View All Answers
How do you escape in java?
What a static class can contains?
What are the three best choices for a development environment?
What is the use of default method in interface in java?
Explain the difference between extends thread vs implements runnable in java?
What about interthread communication and how it takes place in java?
What technique is carried out to find out if a particular string is empty?
What is purpose of applet programming?
Explain the different forms of polymorphism?
What is better- service oriented or batch oriented solutions?
Can the garbage collection be forced by any means?
Which is the best sorting technique in java?
how does multithreading take place on a computer with a single cpu? : Java thread
Can a static method be overridden in java?
How do you include a string in java?