Vidyalelo
Computer Science · Q271

Kotlin Programming MCQ for Competitive Exams, Interviews, and Certifications

Engineering and GATE · Computer Science · question 271

Q271

What is the difference between a and b? var a: String? = "KotlinProgramming" var b: String = 'KotlinProgramming"

A.
a is volatile as in Java
B.
a is final and cannot be changed
C.
b can never become null
Answer
D.
b is final and cannot be changed

Answer: Option C

Solution

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