单项选择题
在下列程序的划线处应填入的语句是
class Person
private int a;public class Man extends Person
public int b;
public static void main (String arg [])
Person p=new Person();
Man t=new Man();
int i:
A.i=w;
B.i=b
C.i=p.a;
D.i=t.b;
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
下列程序的输出结果是public class fff void printValue (int m) do System.out.println( The value is +m); while(--m>10) public static void main (String arg[]) int i=10; Test t= new Test(); t. printValue(i);
A.8
B.9
C.10
D.11
点击查看答案&解析
单项选择题
给出下列的代码,则以下哪个选项返回true String s= hello ; String t= hello ; char c []= 'h','e','1','1','o';
A.equals(t);
B.equals(c);
C.s==t;
D.t==c;
点击查看答案&解析
相关试题
栈和队列的共同特点是
结构化程序设计的3种结构是
resume()方法负责恢复被哪个方法挂起的线...
为了提高测试的效率,应该
下列有关线程的叙述哪个是正确的