SE450: Basics: The Ugly Truth [41/63] |
The dichotomy between static-class and object-class is not enforced in java.
Guideline: separate static and object functions into different classes
Example: java.lang.Math is a static class; java.util.Random is an object class.
Note: this guideline is often violated in the java APIs. For example: java.lang.String and all the wrapper classes, such as java.lang.Integer.