Private constructor in abstract class
问题 In Java what is the purpose of using private constructor in an abstract class? In a review I got this question, and I am curious, for what situation we need to use the constructor in such way? I think it can be used in pair with another constructor in abstract class, but this is very trivial. Also it can be used for constructing static inner classes which will excend abstract class. Maybe there is more elegant usage? 回答1: If the private constructor is the only constructor of the class, then