A

Admin • 802.91K Points
Coach

Q. Which keyword is used to prevent thread interference and memory consistency errors?

  • (A) static
  • (B) volatile
  • (C) synchronized
  • (D) transient

Explanation by: Admin
synchronized ensures that only one thread accesses a block of code at a time.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.