问题描述:
[单选]
给定一个Java程序代码,如下:运行编译后,输出结果是(选一项)pubilc class Test{ int count = 9; public void count(){int count = 10; System.out.println("count1" + count);} public void count(){ System.out.println("count2" + count); } public static void main(String args【】){ Test t = new Test(); t.count(); t.count(); }}
A.count1=9 count2=9
B.count1=10 count2=9
C.count1=10 count2=10
D.count1=9 count2=10
参考答案:查看无
答案解析:无
☆收藏
答案解析:无
☆收藏
上一篇:接口的定义如下( )interface A { int method1(int i); int method2(int j);}类B实现了接口A,以下()是正确的。(选一项)
下一篇:给定如下Java代码,编译时会在()出现错误。(选一项) class Parent{ }class Child extends Parent{ public static void main(String args【】){ Parent p1 = new Child(); //第一行 Parent p2 = new Parent(); //第二行 Child c1 = new Child(); //第三行 Child c2 = new Parent(); //第四行}}
- 我要回答: 网友(18.116.50.87)
- 热门题目: 1.喷房采用的工艺流程为 2.前处理的工序有 3.喷房系统为