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

List down some kotlin data class built in methods?

1 Answers  


What are the modifier available in Kotlin ?

1 Answers  


What are the advantages and disadvantages of Kotlin?

1 Answers  


What is nested class in Kotlin?

1 Answers  


What are the types of strings available in Kotlin? And, what do you mean by Kotlin String Interpolation?

1 Answers  


How does string interpolation work in Kotlin? Explain with a code snippet?

1 Answers  


What is the difference between const vs val?

1 Answers  


What is the use of any() function?

1 Answers  


Define step() function in Kotlin?

1 Answers  


Why you should switch to Kotlin from Java?

1 Answers  


Give example to declare variable using both val and var in Kotlin?

1 Answers  


What are the disadvantages of kotlin?

1 Answers  


Categories