Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vaibhavmojidra/kotlin---demo-difference-between-var-and-val

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.
https://github.com/vaibhavmojidra/kotlin---demo-difference-between-var-and-val

coding kotlin mojidra programming vaibhav vaibhav-mojidra vaibhavmojidra var-vs-val

Last synced: 6 days ago
JSON representation

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.

Awesome Lists containing this project

README

        

# Kotlin Demo Difference Between Var And Val

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.

___

[![Vaibhav Mojidra - 1.jpeg](https://raw.githubusercontent.com/VaibhavMojidra/Kotlin---Demo-Difference-Between-Var-And-Val/master/output/1.jpeg "Vaibhav Mojidra")](https://vaibhavmojidra.github.io/site/)

[![Vaibhav Mojidra - 2.jpeg](https://raw.githubusercontent.com/VaibhavMojidra/Kotlin---Demo-Difference-Between-Var-And-Val/master/output/2.jpeg "Vaibhav Mojidra")](https://vaibhavmojidra.github.io/site/)

[![Vaibhav Mojidra - 3.jpeg](https://raw.githubusercontent.com/VaibhavMojidra/Kotlin---Demo-Difference-Between-Var-And-Val/master/output/3.jpeg "Vaibhav Mojidra")](https://vaibhavmojidra.github.io/site/)