Welcome to DevtalksByMe – your daily dose of Android Interview Q&A!
👉 Today’s Question:
What is the difference between val, var, and const in Kotlin?
🧠 Answer:
val → Read-only variable. Assigned once, but initialized at runtime.
var → Mutable variable. Value can change.
const val → Compile-time constant. Must be a top-level or object-level property and assigned with a primitive or String.
Follow @DevtalksByMe for more Android interview questions in Shorts format!
#Kotlin #AndroidInterview #ValVsVar #ConstVal #KotlinTips #AndroidDeveloper #DevtalksByMe #Shorts #CodeShorts #TechShorts #interviewpreparation #Kotlin #AndroidInterview #ValVsVar #KotlinTips #codinginterview
#AndroidDeveloper #DevTips #YouTubeShorts #TechShorts #DevtalksByMe
#MobileDevelopment #InterviewPreparation #shorts