Aside from accessibility modifiers, do constructors accept any other types of modifiers?
I'm currently testing the hypothesis that constructors can only be preceded by accessibility modifiers (public, private, protected, default). Is this true?
Correct! If you put a return type, java considers it to be a method and it will not create that constructor. Modifiers such a synchronized, native ext. wll throw a compile time exception.
Never mind. I just finished testing it out. Constructors cannot accept static, final, abstract, synchronized, or native as modifiers. Naturally, the same is true for transient and volatile since they are only used to modify variables and not methods.
Don't get me started about those stupid light bulbs.