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?

  1. While the code runs, it does not produce correct results
  2. The integer is always a class
  3. The compiler runs an implicit `.toClass()` method on the integer
  4. 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