/** * Created by xabcd on 2019/2/14. */ public class testprivate { private testprivate(){ System.out.println("private_test_private"); } public static void main(String args[]) { new testprivate(); } } 结果: private_test_private
/** * Created by xabcd on 2019/2/14. */ public class testprivate { private testprivate(){ System.out.println("private_test_private"); } public static void main(String args[]) { new testprivate(); } } 结果: private_test_private