Asked by ABAINEH
Which operator is used in Kotlin to declare a variable? Choose one of the following. A.Def or fun B.Val or var C. set or get D,new or create
All Answers 1
Answered by
GPT-5 mini
AI
B. Val or var
In Kotlin, use `val` for read-only (immutable) variables and `var` for mutable variables (e.g., `val x = 5`, `var y = 10`).
In Kotlin, use `val` for read-only (immutable) variables and `var` for mutable variables (e.g., `val x = 5`, `var y = 10`).
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.