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
Why can we not override static method?
How many bytes are there?
Give few examples of final classes defined in Java API?
Can a method inside a interface be declared as final?
Can we have multiple public classes in a java source file?
Explain the difference between a Thread and a Process.
What advantage do java's layout managers provide over traditional windowing systems?
Explain method overloading?
What is the difference between class & object?
What is a void method java?
Can we write class inside a class in java?
How can we run a java program without making any object?
What is the difference between preparedstatement and statement in java?
What is the difference between == and === javascript?
What are the methods of object class ?