Posts by user253277 • 21 points
1 post
-
2
votes2
answers61
viewsA: What is the static method of that returns an object instance in Java
In your example you are useless. A static function that returns an instance of the class in which it was declared is a convention called Factory. The difference from the static function to a…