How do I implement Serializable in Kotlin so it also works in Java?

do I just import java.io.Serializable

Yes. Just be aware that Kotlin uses @Transient annotation instead of a keyword.

Of course, Java serialization does have its issues, but there’s no difference in that respect between Kotlin and Java, and if you are happy with your current code…

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)