Asia & global innovation
Sign inJoin us
TechStar AsiaIdeas without bordersAsia & global innovation
← Latest news

From Dev.to

What Is the Difference Between val and var in Kotlin, and Is val Immutable?

In short: var can be given a new value. val can't. But val only locks the name, not the object behind it. A val list can still grow, and a val property can return a new value each time you read it. Th...

Read the full report at Dev.to ↗