How to declare variable in Kotlin ?
Answer / Gyanendra Kumar Singh
To declare a variable in Kotlin, you should use the 'var' keyword for mutable variables and the 'val' keyword for immutable (constant) variables. For example: var name: String = "John", val AGE: Int = 25
| Is This Answer Correct ? | 0 Yes | 0 No |
What is Range in Kotlin?
How can you handle null exceptions in Kotlin?
Describe the use of extension function?
What are High-Level Functions in Kotlin?
Define enum in Kotlin?
What are the advantage of using Kotlin ?
Can you execute Kotlin code without JVM?
What are the major features of Kotlin?
Does Kotlin support Checked Exceptions like in Java?
List of extension methods kotlin provides to java.io.file?
Who created Kotlin programming language and when?
What are the disadvantages of kotlin?