Can anyone clarify me about the api Object[] toArray(Object[])

There are two apis in Collections framework to convert the Collection elements into an array 1. Object[] toArray()2. Object[] toArray(Object[])Can some one explain me what does the second api - Object[] toArray(Object[]) does ?
[255 byte] By [GeethaRajendrana] at [2007-10-2 10:21:16]
# 1
Just read the javadoc API of the Collection interface: toArray() just returns an Object[]. But if you need for example a String[] as result useString[] sa = o.toArray(new String[0]);
MartinHilperta at 2007-7-13 1:52:02 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...