Bad: Can't understand why 4.8.4.3 could be useful or nice:
Each switch statement includes a default statement group, even if it contains no code.
Good: I find 6.3 to be a very nice idea to show that static method really changes all of the instances of the object (assuming that the name of variable, which holds a reference to a object, and class name itself are similar).
When a reference to a static class member must be qualified, it is qualified with that class's name, not with a reference or expression of that class's type.
In Java I don't think there's ever a good reason to do so (bad reasons are because it's shorter or due to not realizing it's static). Maybe if the fact that it's static is merely an implementation detail, but I'm not sure how that could ever be the case.
4
u/kersurk Jan 30 '14 edited Jan 30 '14
Bad: Can't understand why 4.8.4.3 could be useful or nice:
Good: I find 6.3 to be a very nice idea to show that static method really changes all of the instances of the object (assuming that the name of variable, which holds a reference to a object, and class name itself are similar).