当前位置:百科知识 > 知到安神定魄答案

问题描述:

[单选] 给定一个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
参考答案:查看
答案解析:
☆收藏

随机题目