Examveda

What is the correct way to declare a variable of integer type in Kotlin?

A. var i : Int = 42

B. var i : int = 42

C. let i = 42

D. int i = 42

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.