AndroidBites | Never be confused by Init blocks invocations again!

Even been confused or keep forgetting which is called first init blocks or constructors? Never again keep reading…

Hi #androidDevs, This is Androidbites where I try to break down a small concept into an understandable code snippet and share my learning experience with it.

Today we are discussing init blocks, here is a little challenge for you guys, let's see if you could guess the correct out! if you can guess the right output you get a Candy,

Image for post
Image for post

if you don’t know then, don’t worry grab your headphones and put on lofi music and read thought my article from below…👇💻

See you on the other side 😈
Happy #Hacking!💻

Written by

Coding enthusiast! love Android #kotlinAlltheWay, want to explore all opportunity around it! CodingMantra: #cleanCoder #TDD #SOLID #designpatterns

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store