1.

Difference Between Array And List In Scala?

Answer»
  • ARRAYS are always MUTABLE where as LIST is always Immutable.
  • Once created, We can change ARRAY values where as we cannot change List Object.
  • Arrays are fixed-size data structures where as List is variable-sized data structures. List’s size is automatically increased or decreased BASED on it’s operations we perform on it.
  • Arrays are Invariants where as Lists are Covariants.



Discussion

No Comment Found