R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which method is used to get a synchronized list?

  • (A) Collections.syncList()
  • (B) Collections.synchronizedList()
  • (C) SynchronizedList.wrap()
  • (D) Collections.threadSafeList()
  • Correct Answer - Option(B)
  • Views: 26
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma

`Collections.synchronizedList()` wraps a list to make it thread-safe.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.