Kotlin divide la Lista de solo lectura de MutableList en el nivel de tipo; Java.util.List de Java siempre es mutable a través de la interfaz: los envoltorios no modificables y los métodos de fábrica añaden disciplina. La misma historia para mapOf vs Map.of. La agrupación de estas diferencias le indica cuándo la inmutabilidad es una promesa en tiempo de compilación frente a un contenedor en tiempo de ejecución.

Kotlin: lista de vs lista mutable
Full content is available with a subscription.
Get full access to all courses on the platform for one year with a single payment.
Unlike other platforms that charge per course, here you get everything for one price, and after one year of use there will be no automatic charge for the following year.