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?

158

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

114

What is the Elvis Operator?

123

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

162

What is the difference between val and var?

158

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

134

What kinds of programming does Kotlin support ?

109

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

144

What is init block in Kotlin?

155

How are Primary Constructors different from Secondary Constructors ?

125

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

167

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

167

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

258

How do you realize Ternary Conditional Operator in Kotlin ?

163


Post New Kotlin Questions

Un-Answered Questions { Kotlin }

Explain the data classes in kotlin?

121


Give example to declare variable using both val and var in Kotlin?

133


How do you differentiate var and val in Kotin?

183


How do you realize Ternary Conditional Operator in Kotlin ?

163


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

142






what is the use of extension functions in Kotlin?

173


How to declare an initialization block in kotlin class?

195


Who created Kotlin programming language and when?

132


What is Kotlin?

122


Why is Kotlin interoperable with Java?

138


What is nested class in Kotlin?

148


How is kotlin integrated with Gradle?

143


Can we create uninitialized array in kotlin?

125


Why to use kotlin?

101


Does Kotlin provide any additional functionalities for standard Java packages or standard Java classes?

138