Edgar Trania wrote:but im trying to say that i got confused with array semantics but nevermind then
Paul Clapham wrote:So are you clear about what is happening there? Or do you still have a question?
If the list fits in the specified array, it is returned therein. Otherwise, a new array is allocated with the runtime type of the specified array and the size of this list.
Mansukhdeep Thind wrote:So, in this case, since the String array being passed is of a size less than the number of elements in the list, a new String array will be created at run-time having a size 4. Correct?