7.13.1.How to prevent shared data from being corrupted in a multithreaded environment?
A. Mark all variables as synchronized.
B. Mark all variables as volatile.
C. Use only static variables.
D. Access the variables only via synchronized methods.
E. Mark all variables as transient
7.13.Questions
7.13.1.
How to prevent shared data from being corrupted in a multithreaded environment?