Skip to content

EasyConceptAndroid and Kotlin

What is the difference between val and var in Kotlin?

What a good answer covers

val is a read-only reference that cannot be reassigned, while var is mutable. Prefer val for safer code.

More on Android and Kotlin

Flashcards for this topic