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

Who is the father of Scala?

1 Answers  


What is scala best used for?

1 Answers  


Explain the difference between java and scala?

1 Answers  


Mention the identifiers in scala?

1 Answers  


What is Primary Constructor? What is Secondary or Auxiliary Constructor in Scala?

1 Answers  


What are higher-order functions?

1 Answers  


What are the Popular Scala-Based Frameworks to develop RESTful Web Services or REST API?

1 Answers  


Explain the functionality of yield?

1 Answers  


What is the queue in the scala collection?

1 Answers  


What is the main design decision about two separate keywords: class and object in Scala? How do we define Instance members and Static members 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 a tuple in scala?

1 Answers  


Categories