Take a look at the following snippet of code:
fun main() {
val a = "test"
var b = a
b = "a"
val a = "a"
print(a)
print(", ")
print(b)
}
What will be the output?
Take a look at the following snippet of code:
fun main() {
val a = "test"
var b = a
b = "a"
val a = "a"
print(a)
print(", ")
print(b)
}
What will be the output?
Create a free account to access the full topic