In this code, 1234 is a Kotlin Int type, representing an integer. ::class says "give me the Kotlin class for this object", and we are printing that class to standard output.

1234L is a Long, while 3.14159 is a Double and 3.14159f is a Float.

You can learn more about this in:
Run Expand Edit