Infosys interview question

what the difference between array and List?

Interview Answer

Anonymous

Apr 8, 2020

An Array is homogeneous (accepts one data type at a time such as int or string or char) As List is non-homogeneous (can accepts any data type)