static
classes. To create a class that only contains static utility methods, use the old-fashioned approach of defining a private default constructor. Java does have a static
class modifier, but it means something completely different, and is for nested classes.
No comments:
Post a Comment