Skip to main content
Learn tech skills with top-tier courses for programming fundamentals and interview prep.
Try Educative
Interview Handbook
Get Started
Table of Contents
Disciplines
Backend
Machine Learning
Web/Frontend
Mobile
Data Science
Data Engineering
Product Management
Fundamentals
Quiz
Educative.io
HackTheRounds
Search
Question 1 of 21
What is the difference between 'val' and 'var' in Kotlin?
Kotlin
A
'val' is for primitives; 'var' is for objects
B
'val' is for local variables; 'var' is for class properties
C
'val' is compile-time constant; 'var' is runtime variable
D
'val' is immutable (read-only); 'var' is mutable
Check Answer