Examveda

What is the equivalent of the following Java code in Kotlin?
int num = 10;

A. var num: Int = 10

B. val num = 10

C. val num: Int = 10

D. val num: Int = 16

Answer: Option C


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.