Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is list in scala collection?



What is list in scala collection?..

Answer / 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

More Scala Interview Questions

Explain the difference between a trait and an abstract class?

1 Answers  


What is Monad in Scala?

1 Answers  


What is default access modifier in Scala?Does Scala have 'public' keyword?

1 Answers  


Explain bitset in scala?

1 Answers  


Explain que?

1 Answers  


What is a applicative?

1 Answers  


What is Nothing in Scala? What is Nil in Scala? What is the relationship between Nothing and Nil in Scala?

1 Answers  


What is scala programming used for?

1 Answers  


What is the queue in the scala collection?

1 Answers  


Like Java’s java.lang.Object class, what is the super class of all classes in Scala?

1 Answers  


What is PreDef in Scala?

1 Answers  


What are higher-order functions in scala?

1 Answers  


Categories