What is the difference between Const and Val?
Answer / Dheeran Singh
In Kotlin, 'const' is a special type of 'val' used for properties that are expected to be constant at compile time. Unlike 'val', 'const' values can only be initialized with a constant expression.
| Is This Answer Correct ? | 0 Yes | 0 No |
Define enum in Kotlin?
What is the use of abstraction in Kotlin?
Can you tell me what kinds of programming types does Kotlin support?
Differentiate between break and continue?
Which type of programming does kotlin support?
How do you declare a variable as volatile in Kotlin ?
How to declare variable in Kotlin ?
What is the entry point to a kotlin program?
Which method is used to get array last index?
What are the types of strings available in kotlin?
Who created Kotlin programming language and when?
Why you should shift from Java to kotlin?