[ prog / sol / mona ]

prog


itt: we talk about random java stuff

19 2020-10-14 20:40

>>18

static {
    // stuff here
}

runs in <clinit> at class initialization, whereas

{
    // read SICP
}

runs in the constructor, with the instance field initializers.

https://docs.oracle.com/javase/specs/jls/se8/html/jls-12.html#jls-12.4.2 step 9
https://docs.oracle.com/javase/specs/jls/se8/html/jls-12.html#jls-12.5 step 4

35


VIP:

do not edit these