adspace


What is thread safe in java?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How to sort array in descending order in java?

996


What are the differences between heap and stack memory in java?

1140


What is an object in java and how is it created?

1140


What is a constructor overloading in java?

1125


What is a classloader in java?

1090


Differentiate between static and non-static methods in java.

1128


Is minecraft 1.15 out?

1045


What is the difference between break and continue statements?

1127


What is the difference between equals() and == in java?

1040


Write a program to print count of empty strings in java 8?

1086


What is java string pool?

1083


Explain public static void main(string args[]) in java.

1076


What do you mean by an interface in java?

1105


Write a program to find the whether a number is an Armstrong number or not?

1098


explain different ways of using thread? : Java thread

1082