What is the difference between array and list in scala?
S.no | Array | List |
---|---|---|
1. | The sequential and mutable data structure | The recursive and immutable data structure |
2. | Invariant | Covariant |
3. | Fixed size | Variable size |
BY Best Interview Question ON 04 Apr 2020