Vidyalelo
Computer Science · Q58

Kotlin Programming MCQ for Competitive Exams, Interviews, and Certifications

Engineering and GATE · Computer Science · question 58

Q58

Which of the following is true about Kotlin's data classes?

A.
They must implement the Serializable interface
B.
They are final by default and cannot be extended
C.
They cannot have any properties
D.
They must implement the equals() and hashCode() methods
Answer

Answer: Option D

Solution

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