I'm from the java android background. So can someone explain why a variable with type String? cannot be equal to a variable of type String.
var a: String? = "Kotlin"
var b: String = "Kotlin"
b = a // Gives error
What's the difference in both the types ? Can anyone explain in java ?