A

Admin • 831.35K Points
Coach

Q. Which method is used to convert a Set to an array?

  • (A) toArray()
  • (B) convertToArray()
  • (C) asArray()
  • (D) getArray()
  • Correct Answer - Option(A)
  • Views: 17
  • Filed under category Java
  • Hashtags: Java Set

Explanation by: Admin
The `toArray()` method is used to convert a Set into an array.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.