Why is synchronization used in Java multithreading?
To improve CPU performance
To allow multiple threads to execute at once
To prevent data inconsistency and race conditions
To increase thread priority
This question is part of this quiz :
Java Synchronization Basics