以下程序调试结果为:private class Base{ ....out.println(i); }}
举一反三
- (10-1)请写出程序运行结果。class Base{private int...*b.getX()+""+a);}}
- 以下代码调试结果 class Base {} class Sub extends...Sub s = (Sub) b; } }
- 以下代码调试结果 class Base {} class Sub extends Base {} public class CEx{ public static void main(String argv[]){ Base b = new Base(); Sub s = (Sub) b; } }
- 当你编译运行下列程序代码,会得到什么结果? 。 private class Base{ Base(){ int i = 100; System.out.println(i); } } public class Pri extends Base{ static int i = 200; public static void main(String argv[]){ Pri p = new Pri(); System.out.println(i); } }
- 以下程序的编译和运行结果为? abstract class Base{ abst...hod(){ myfunc(); } }