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 -

json - ORA-06502: PL/SQL: numeric or value error: character string buffer too small - Convert Clob to varchar2 -

ios - Swift Array Resetting Itself -