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 how to create arrays?



Explain how to create arrays?..

Answer / Rekha Meena

In Scala, you can create arrays using the 'new' keyword followed by the array type and size enclosed in square brackets. For example, to create an array of integers with 5 elements: 'val arr = new Array[Int](5)'.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Scala Interview Questions

What is guard in Scala’s for-comprehension construct?

1 Answers  


What is function composition in scala?

1 Answers  


Give some examples of packages in scala?

1 Answers  


What are higher-order functions in scala?

1 Answers  


What is an auxiliary constructor?

1 Answers  


What is SBT? What is the best Build Tool to develop Play and Scala Applications?

1 Answers  


What is the function parameter with a default value in scala?

1 Answers  


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

1 Answers  


Difference between Scala’s Int and Java’s java.lang.Integer? What is the relationship between Int and RichInt in Scala?

1 Answers  


What is the difference between 'val' and 'lazy val' in Scala? What is Eager Evaluation? What is Lazy Evaluation?

1 Answers  


What is the difference between apply and unapply methods in scala?

1 Answers  


What is the best Scala style checker tool available for Play and Scala based applications?

1 Answers  


Categories