Answer Posted / Gajendra
"List in Scala is a linear data structure that can contain any number of elements of the same type. It is immutable, which means once created, it cannot be changed. The syntax for creating a list in Scala is: import scala.collection.immutable.List or val list = List(element1, element2...)"
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers