What is init block in Kotlin?
Answer / Pooja Saini
An init block in Kotlin is a block of code that gets executed before the constructor is called. It allows you to initialize properties with complex logic or delegate calls.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are different types of constructors in kotlin?
What are the disadvantages of kotlin?
What are the modifiers that are available in kotlin?
What is companion object?
What are the features of java has that kotlin does not?
What is Range in Kotlin?
List the Basic data types of Kotlin?
What is the default visibility modifier and also list the different types of modifiers?
What is the Elvis Operator?
What are the major features of Kotlin?
What is Kotlin?
How to declare a variable in kotlin?