Question Bank
1899 approved questions from the community
What is variance in Kotlin generics?
What is the purpose of the 'lateinit' modifier in Kotlin?
What does the 'internal' visibility modifier mean in Kotlin?
What is the difference between 'protected' visibility in Kotlin and Java?
What is the 'tailrec' modifier in Kotlin?
What is the 'Nothing' type in Kotlin?
What are component functions in Kotlin data classes?
What is the primary purpose of data classes in Kotlin?
What is the purpose of sealed classes in Kotlin?
Sealed classes in Kotlin can have subclasses defined outside the same file or module.
What is the purpose of the 'init' block in Kotlin?
How do you declare a secondary constructor in Kotlin?
In Kotlin, 'List' and 'MutableList' are the same interface.
What operator is used for safe calls on nullable objects in Kotlin?
What does the not-null assertion operator '!!' do in Kotlin?
What is the safe cast operator in Kotlin?
Suspending functions can only be called from other suspending functions or coroutines.
Object declarations in Kotlin are lazily initialized when accessed for the first time.
What keyword is used to define a suspending function in Kotlin?
What is the difference between 'launch' and 'async' coroutine builders?