In Kotlin, var and val are used to declare variables. The main difference between them is that var declares a mutable variable, which means its value can be changed after it is initialized, while val declares an immutable variable, which means its value cannot be changed after it is initialized.
-
Notifications
You must be signed in to change notification settings - Fork 0
In Kotlin, var and val are used to declare variables. The main difference between them is that var declares a mutable variable, which means its value can be changed after it is initialized, while val declares an immutable variable, which means its value cannot be changed after it is initialized.
License
VaibhavMojidra/Kotlin---Demo-Difference-Between-Var-And-Val
About
In Kotlin, var and val are used to declare variables. The main difference between them is that var declares a mutable variable, which means its value can be changed after it is initialized, while val declares an immutable variable, which means its value cannot be changed after it is initialized.
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published