"The Java compiler copies initializer blocks into every constructor. Therefore, this approach can be used to share a block of code between multiple constructors."
I have read this on this tutorial: http://docs.oracle.com/javase/tutorial/java/javaOO/initial.html
I don't get it. What is the need of a constructor when an initializer block is there and doing the work of a constructor, in other words working as an alternative to a constructor?
Oh but the constructor has to be invoked when creating the instance. OK! but then what is the need of an initializer block?
"Therefore, this approach can be used to share a block of code between multiple constructors." Can somebody please give me an example? I mean I don't get it.
Thank you in advance.