What is thread safe in java?



What is thread safe in java?..

Answer / Abdullah Shahid

Thread safety refers to the ability of an object or a class to be accessed by multiple threads concurrently without causing any inconsistency or errors. In Java, making an object thread-safe often involves synchronizing its methods and ensuring that it maintains its integrity when accessed from different threads.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is parsing a sentence?

1 Answers  


What is instance synchronization?

1 Answers  


Why char array is favored over string for the storage of passwords?

1 Answers  


What is a stream? what are the different types and classes of Streams?

2 Answers  


Give an example of use of pointers in java class.

1 Answers  


What do you mean by constant time complexity?

1 Answers   Amazon,


Explain what pure virtual function is?

1 Answers   Aricent,


Which is dependent variable?

1 Answers  


What is externalizable interface?

1 Answers  


What are the changes in java.io in java 8 ?

1 Answers  


What is the differenc between Enemuration interface and iterator interface according to accessing?

4 Answers  


use of wrapper classes?

3 Answers   IBM,


Categories