I have an inner class which looks like this:
class Inner {
final static String ok = "something";
final static String nok = new String("something");
}
A compile time error occurs in the second declaration but not in the first one. Seems as if non-static inner classes not allow explicit invocation of constructor. Also static initializer is not allowed.
Can anyone explain the background?