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

Which scala library is used for the functional programming?

1 Answers  


What is an ofdim method in scala?

1 Answers  


Why do we use =(equal) operator in scala function?

1 Answers  


What is traversable in scala collection?

1 Answers  


Is Scala a Pure OOP Language? or Java a Pure OOP Language?

1 Answers  


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

1 Answers  


How many values of type Unit have in Scala?

1 Answers  


What language is scala written in?

1 Answers  


What is lambda expression in scala?

1 Answers  


What are the advantages of Play/Scala stack to develop web applications?

1 Answers  


What is method overriding in scala?

1 Answers  


Explain either/left/right design pattern in scala?

1 Answers  


Categories