static
ブロック内の初期化の違いは何ですか:
public class staticTest {
static String s;
static int n;
static double d;
static {
s = "I'm static";
n = 500;
d = 4000.0001;
}
...
そして、個々の静的初期化:
public class staticTest {
static String s = "I'm static";
static int n = 500;
static double d = 4000.0001;
....