Differentiate between val and var in Kotlin?
Answer / Asjad Iqbal
"'val' is used to declare a constant variable that cannot be reassigned, while 'var' is used for mutable variables that can be reassigned."
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain the use of extension functions
In Kotlin can interface have implemented method?
How does string interpolation work in Kotlin? Explain with a code snippet?
Does Kotlin support Checked Exceptions like in Java?
Give an example of high order functions?
What are the programming types that Kotlin supports?
How many ways to create array in kotlin?
Name some of the features that have Kotlin but not in present in Java?
What are the features of java has that kotlin does not?
What is the use of rangeTo() function?
How to declare a Kotlin variable?
What is the difference between inline and infix functions? Give an example of each.