Examveda

What is the purpose of the `toArray()` method in the Java Collections Framework?

A. It sorts the collection

B. It converts a collection to an array

C. It reverses the collection

D. None of These

Answer: Option B


This Question Belongs to Java Program >> Collections Framework In Java

Join The Discussion

Related Questions on Collections Framework in java