What is the equivalent of the following Java code in Kotlin?
int num = 10;
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
Related Questions on Kotlin Program
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.
Which platform does Kotlin primarily target?
A. Python Bytecode
B. JavaScript
C. JVM (Java Virtual Machine) Bytecode
D. PHP

Join The Discussion