You are currently viewing Does Kotlin treat strings as primitives?

Does Kotlin treat strings as primitives?

I was reading some Kotlin tutorials and I noticed that they were using == to compare strings. What’s up with that? Does Kotlin make strings primitives, or does == now invoke .equals()?

submitted by /u/Orangutanion
[link] [comments]