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


Can we create uninitialized array in kotlin?



Can we create uninitialized array in kotlin?..

Answer / Rajmala

Yes, Kotlin allows you to create an array without initializing all elements using the 'arrayOfNulls()' function. For example: val arr = Array(3) { null }

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Kotlin Interview Questions

What are the advantages and disadvantages of Kotlin?

1 Answers  


How to declare volatile variable ?

1 Answers  


What is the entry point to a Kotlin program ? Give an example?

1 Answers  


Differentiate between val and var in Kotlin?

1 Answers  


Can you migrate the code from java to kotlin? If yes how do you do it?

1 Answers  


In kotlin, can we create an empty array?

1 Answers  


Which companies use kotlin?

1 Answers  


What is Kotlin Native?

1 Answers  


Mention few features that Kotlin provides but not java ?

1 Answers  


Does Kotlin have the static keyword? How to create static methods in Kotlin?

1 Answers  


What is init block in Kotlin?

1 Answers  


What is the difference between object { } block and companion object { } code block in Kotlin?

0 Answers  


Categories