In kotlin, can we create an empty array?
Answer / Siddharth
Yes, in Kotlin you can create an empty array by initializing it with empty brackets [] for arrays, or MutableList<>() for mutable lists.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain the data classes in kotlin?
Can Kotline offer any additional functionality for standard Java packages or standard Java classes?
What is the difference between Const and Val?
How to declare an initialization block in kotlin class?
State the differences between val and var?
How do you migrate the code from Java to Kotlin ?
How Kotlin works?
What is the use of any() function?
What are the features available in kotlin but not in java?
What are the disadvantages of kotlin?
What are the major features of Kotlin?
What are the features that kotlin support and java doesn’t?