> The thread initiation example was ok according to bloch.
Sorry, small correction, the thread example wasn't ok according to bloch,
but since anyone in the world, including mr. Bloch himself, are using
interfaces to export constants, i think it's considered ok...
> The thread initiation example was ok according to bloch.
Sorry, small correction, the thread example wasn't ok according to bloch,
but since anyone in the world, including mr. Bloch himself, are using
interfaces to export constants, i think it's considered ok...
Because he defines interfaces as class definition / object pattern solely.
Using interfaces for constant definition doesn't fit this purpose.
However, it was not ment for this case:
public interface MyInterface {
public static final String YES = "yes";
}
What you shouldn't define in int
Because he defines interfaces as class definition / object pattern solely.
Using interfaces for constant definition doesn't fit this purpose.
However, it was not ment for this case:
public interface MyInterface {
public static final String YES = "yes";
}
What you shouldn't define in int
4 matches
Mail list logo