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


Difference between Array and List in Scala?



Difference between Array and List in Scala?..

Answer / Tauqeer Ahmad

In Scala, Arrays are fixed-size, mutable data structures with homogeneous elements, whereas Lists can be either mutable or immutable (ListBuffer for mutable lists, List for immutable lists) and can contain heterogeneous elements. Arrays have faster access times than lists due to their contiguous memory allocation, but lists are more flexible in terms of their size and element types.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Scala Interview Questions

Why scala prefers immutability?

1 Answers  


What is unapply method in scala?

1 Answers  


What is a closure?

1 Answers  


What is the equivalent construct of Scala’s Option in Java SE 8? What is the use of Option in Scala?

1 Answers  


What is list in scala collection?

1 Answers  


What is Statically-Typed Language and What is Dynamically-Typed Language?

1 Answers  


What is for-comprehension in scala?

1 Answers  


What is a trait mixins in scala?

1 Answers  


In FP, What is the difference between a function and a procedure?

1 Answers  


What is Scala anonymous function?

1 Answers  


What are left and right in scala?

1 Answers  


Explain the difference between java and scala?

1 Answers  


Categories