A

Admin • 832.27K Points
Coach

Q. Which keyword is used to create a critical section in Java?

  • (A) protected
  • (B) volatile
  • (C) synchronized
  • (D) threadsafe

Explanation by: Admin

`synchronized` is used to control access to blocks of code or methods by multiple threads.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.