Someone explain to me the differences between the
following two statements?
A static
variable initialized by a
finalstatic
code
block:
private static
final String foo;
static { foo = "foo";
}
A static
variable initialized by an
final
assignment:
private static final
String foo = "foo";
No comments:
Post a Comment