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 |
List down some kotlin data class built in methods?
What are the modifier available in Kotlin ?
What are the advantages and disadvantages of Kotlin?
What is nested class in Kotlin?
What are the types of strings available in Kotlin? And, what do you mean by Kotlin String Interpolation?
How does string interpolation work in Kotlin? Explain with a code snippet?
What is the difference between const vs val?
What is the use of any() function?
Define step() function in Kotlin?
Why you should switch to Kotlin from Java?
Give example to declare variable using both val and var in Kotlin?
What are the disadvantages of kotlin?