When use Braces block in Java like this? -


enter image description here

please see above picture (from wrox beginning spring book)

i have question { } ?

is constructor ? functional block ? block of "accountsmap" ? ?

please explain feature in java ? name of feature ?

it's instance initializer block gets executed each time create instance of class, no matter constructor used. executed prior code of executed constructor. see jls 8.6 more details.


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -