Question: What is the execution order of init blocks and properties during initialization?
- All of the properties are executed in order of appearance, and then the init blocks are executed.
- The init blocks and properties are executed in the same order they appear in the code.
- All of the init blocks are executed in order of appearance, and then the properties are executed.
- The order of execution is not guaranteed, so code should be written accordingly.
Answer: The correct answer of the above question is Option B:The init blocks and properties are executed in the same order they appear in the code.