Kotlin is subject to the same restrictions as Java...
# announcements
k
Kotlin is subject to the same restrictions as Java, i.e. all objects are allocated on the heap (except when escape analysis is applied)