What do you want to save?
Add Code snippet
New code examples
-
Kotlin 2022-03-27 07:40:17
var and val in kotlin
val and var both are used to declare a variable. var is like general variable and it's known as a mutable variable in kotlin and can be assigned multiple times. val is like Final variable and it's known as immutable in kotlin and can be initialized only s... Add solution