Examveda

What is the difference between a "var" and a "val" in Kotlin?

A. var is a mutable variable, while "val" is an immutable variable

B. var is a constant, while "val" is a variable

C. val is a mutable variable, while "var" is an immutable variable

D. val is a constant, while "var" is a variable

Answer: Option A


This Question Belongs to Computer Science >> Kotlin Program

Join The Discussion

Related Questions on Kotlin Program

What is Kotlin?

A. A new version of Java.

B. A JavaScript framework.

C. A statically-typed programming language for the JVM, Android, and browser.

D. A database management system.