What is the difference between `anInstance.javaCla...
# getting-started
j
What is the difference between
anInstance.javaClass
and
anInstance::class.java
?
s
🙏 1
j
I take it then that ::class.java is preferred over javaClass?
s
I would say yes 👍 the return type is more correct and the meaning is less likely to be ambiguous or unexpected