Month: June 2019

Kafka Commands

Start kafka server. For this you need to go inside kafka folder. List topics on kafka broker Create topic Command line producer

Why doesn’t Kotlin allow to use lateinit with primitive types?

For object types, Kotlin uses the null value to mark that a lateinit property has not been initialized and to throw the appropriate exception when the property is accessed. For primitive types, there is no such value, so there is no way to mark a property as non-initialized and to provide the diagnostics that lateinit needs to provide. (We could try …

Why doesn’t Kotlin allow to use lateinit with primitive types? Read More »