public class TestBlock { private int x; { System.out.println("实例块"); } static{ System.out.println("静态块"); } public static void main(String[] args) { new TestBlock( ); new TestBlock( ); } }运行结果是?
发布于 2020-12-25 16:55:53
登录后免费查看答案
关注者
0
被浏览
85