R

Ram Sharma • 3.40K Points
Extraordinary

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

  • (A) convertToArray()
  • (B) toList()
  • (C) toArray()
  • (D) toArrayList()
  • Correct Answer - Option(C)
  • Views: 10
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
`toArray()` is used to convert a collection into an array.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.