Why do we have to use ::class.java
for referencing a class while creating Android apps in Kotlin? Despite the fact that the referenced class is in Kotlin.
As an example, if we want to Start an activity from another activity we have to use Intent(this, sampleActivity::class.java)
to initiate an Intent.
Note: My query does not refer to the distinction between (:) single colon and (::) double colon, which is addressed Here. I'm curious. Why is 'class.java' used in a Kotlin class?