Kotlin Interview Questions
Questions Answers Views Company eMail

Does Kotlin support both Explicit conversion and Implicit conversions?

182

How does string interpolation work in Kotlin? Explain with a code snippet?

160

How many types of constructors are there ? What are they ?

117

What is the Elvis Operator?

125

Does Kotlin have the static keyword? How to create static methods in Kotlin?

162

What is the difference between val and var?

160

What is the difference between Return Type Unit and Return Type Nothing in Kotlin?

136

What kinds of programming does Kotlin support ?

111

Which is the default modifier for a method, variable, class?

146

What is init block in Kotlin?

157

How are Primary Constructors different from Secondary Constructors ?

127

What is the type of arguments inside a constructor? Why do you think they are val unless explicitly set to var?

169

How is a function declared? Why are Kotlin functions known as top-level functions?

169

What is the type of the following Array?, val arr = arrayOf(1, 2, 3);

262

How do you realize Ternary Conditional Operator in Kotlin ?

163


Post New Kotlin Questions

Un-Answered Questions { Kotlin }

What is the default visibility modifier and also list the different types of modifiers?

144


What is init block in Kotlin?

157


How to make a class data class ?

167


What is the difference between object { } block and companion object { } code block in Kotlin?

134


Name some of the features that have Kotlin but not in present in Java?

181






How can data class be used in Kotlin?

193


Why you should switch to Kotlin from Java?

148


What is the type of arguments inside a constructor? Why do you think they are val unless explicitly set to var?

169


What is the purpose of creating kotlin?

117


How do you realize Ternary Conditional Operator in Kotlin ?

163


Can kotlin code be executed without jvm?

115


Can you execute Kotlin code without JVM?

836


How do you declare ranges operator in kotlin?

108


Who created Kotlin programming language and when?

132


How to compare two strings in Kotlin?

135