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...


Explain the difference between array and list in scala?



Explain the difference between array and list in scala?..

Answer / Amit Kumar Bhaskar

An Array in Scala is a fixed-size, zero-indexed collection of elements. It is accessed by an index, and its size must be specified at creation. A List in Scala, on the other hand, is a mutable or immutable (depending on the type used) collection that can grow or shrink as needed, with no defined order. Lists are more flexible but less efficient for random access than arrays.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Scala Interview Questions

What is an ofdim method in scala?

1 Answers  


What is listset in scala collection?

1 Answers  


What is Option in Scala? What are Some and None? What is Option/Some/None Design Pattern in Scala?

1 Answers  


Is scala easy to learn?

1 Answers  


How to create arrays in scala?

1 Answers  


How can you format a string?

1 Answers  


What is the advantage of Scala?

1 Answers  


What are the differences between Array and ArrayBuffer in Scala?

1 Answers  


What are the advantages of case class?

1 Answers  


What companies use scala?

1 Answers  


Explain exception handling in scala?

1 Answers  


Explain extractors in scala?

1 Answers  


Categories