Vidyalelo
Computer Science · Q83

Kotlin Programming MCQ for Competitive Exams, Interviews, and Certifications

Engineering and GATE · Computer Science · question 83

Q83

What is the purpose of the init block in Kotlin?

A.
to initialize variables
Answer
B.
to define constructors
C.
to set default values for variables
D.
to create objects

Answer: Option A

Solution

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