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


Differentiate between array and list in scala.



Differentiate between array and list in scala...

Answer / Sunita Devi

"Scala Array is a fixed-size data structure, meaning its size is decided at the time of creation, whereas List is a variable-sized data structure, allowing elements to be added or removed dynamically. Array has constant-time access to any element, but modifying an array requires shifting all subsequent elements when adding or removing elements in the middle. On the other hand, Lists provide O(1) insertion and deletion at both ends, but accessing an element can take up to O(n) time."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Scala Interview Questions

Explain what is unit in scala?

1 Answers  


What are option, some and none in scala?

1 Answers  


How scala is both functional and object-oriented programming language?

1 Answers  


What do you mean by scala map?

1 Answers  


What is 'Application' in Scala or What is Scala Application? What is 'App' in Scala? What is the use of Scala’s App?

1 Answers  


What is the difference between statically typed and dynamically typed languages?

1 Answers  


Explain the access modifiers available in scala?

1 Answers  


How do we implement loops functionally? What is the difference between OOP and FP style loops?

1 Answers  


How many values of type Nothing have in Scala?

1 Answers  


Explain extractors in scala?

1 Answers  


What is a ‘Scala set’? What square measure ways through that operation sets square measure expressed?

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  


Categories