0

Explain the difference between Val and Var in kotlin?

Jun 16, 2020 in Kotlin by Sri

1 answers to this question.

0
  • Both Val and Var in kotlin are utilized to declare a variable, Var is a general variable, and we can assign Var the various number of times and Var also acknowledged as the mutable variable. 
  • Val is acknowledged as an immutable variable because it is constant and we cannot assign it a various number of times.

If you want to learn more about this amazing language, Enroll Now: Kotlin Training

Jun 16, 2020 answered by Surya

Related Questions

0 1 answers

Kotlin Lambda Example

Explain about kotlin lambda expression with example?

Jun 16, 2020 in Kotlin by Irshad
0 1 answers

Kotlin Abstract Class

What is the abstract class in kotlin?

Jun 16, 2020 in Kotlin by Irshad
0 1 answers

Kotlin Default Arguments

How the default argument in kotlin works?

Jun 16, 2020 in Kotlin by Irshad