Question: You pass an integer to a function expecting type Any. It works without issue. Why is a primitive integer able to work with a function that expects an object?
- While the code runs, it does not produce correct results
- The integer is always a class
- The compiler runs an implicit `.toClass()` method on the integer
- The integer is autoboxed to a Kotlin Int class
Answer: The correct answer of the above question is Option D:The integer is autoboxed to a Kotlin Int class