MSMohit Siloriinsilori.hashnode.dev·Jan 12, 2024 · 1 min readVar vs Val in KotlinIn Kotlin, when we declare a variable and assign it a value, like : var x = 5 What happen behind the scene is, an object is created, having the value ( i.e. 5 ) you assigned to the variable ( i.e. x ). Then the variable hold the reference to the obje...00