Question: what is the difference between init and constructor in kotlin?
Answer: 3 Answers. The init block will execute immediately after the primary constructor. ... The constructor is the secondary constructor. Delegation to the primary constructor happens as the first statement of a secondary constructor, so the code in all initializer blocks is executed before the secondary constructor body.