大家都说说这道题的答案是怎样的
- public class CodeDemo {
- static
- {System.out.println("b");}
-
- public static void main(String[] args) {
- new StaticCode();
- new StaticCode();
- System.out.print("over");
- }
- static
- {System.out.println("c");}
- }
- class StaticCode{
- static
- {System.out.println("a");}
- }
复制代码 完事大家别忘了去对答案哦
|
|