Vidyalelo
Computer Science · Q144

Kotlin Programming MCQ for Competitive Exams, Interviews, and Certifications

Engineering and GATE · Computer Science · question 144

Q144

You are upgrading a Java class to Kotlin. What should you use to replace the Java class's static fields?

A.
an anonymous object
B.
a static property
C.
a companion object
Answer
D.
a backing field

Answer: Option C

Solution

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