Vidyalelo
Computer Science · Q259

Kotlin Programming MCQ for Competitive Exams, Interviews, and Certifications

Engineering and GATE · Computer Science · question 259

Q259

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
Answer
D.
val num: Int = 16

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board