Vidyalelo
Java Programming · Q9

Threads

Programming · Java Programming · question 9

Q9

What is a race condition in multithreaded Java programs?

A.
A situation where threads synchronize perfectly
B.
A situation where threads never finish executing
C.
A situation where multiple threads access shared data simultaneously, leading to unpredictable results
Answer
D.
A situation where threads throw exceptions

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board