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
What is the association?
How we create object in copy constructor?
What is null statement?
How does multithreading take place on a computer with a single cpu?
give an example for encapsulation?
What is stringjoiner ?
describe method overloading
What is jit compiler ?
Write a program to show whether a graph is a tree or not using adjacency matrix.
What is r * in math?
What do you mean by local variable and instance variable?
What are the rules for variable declaration?
Is minecraft 1.15 out?
Explain the meaning of java applet.
Explain notifyall() method of object class ?