Which of the following is the correct way to declare a variable in Kotlin that cannot be changed (immutable)? - Study24x7
Social learning Network
5 followers study24x7 04 Nov 2024 10:55 AM study24x7 study24x7

Which of the following is the correct way to declare a variable in Kotlin that cannot be changed (immutable)?

A

var name = "John"

B

val name = "John"

C

const name = "John"

D

immutable name = "John"

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles