What is toarray method in java?



What is toarray method in java?..

Answer / Nirbhaya Singh

The 'toArray()' method in Java converts the elements of a collection into an array. It returns an object array that contains all the elements of the collection.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Write a program to show whether a graph is a tree or not using adjacency matrix.

1 Answers   Amazon,


In C we use only compiler. Why java uses both compiler and interpreter? What is its significance?

5 Answers  


Is object a data type?

1 Answers  


What is singleton class example?

1 Answers  


Does .length start 0 java?

1 Answers  


What means public static?

1 Answers  


What about main thread in java?

1 Answers  


What are advantages and disadvantages of OOPs?

1 Answers   Amdocs,


what is the difference between Cpp And Java

15 Answers   Infosys,


What is boolean flag in java?

1 Answers  


Write a program to search a number in the given list of numbers.

1 Answers   Honeywell,


Can finally block be used without a catch?

1 Answers  


Categories