单项选择题
给出下列的不完整的类代码,则下列的哪个语句可以加到横线处 class Person { String name,department; int age; public Person( String n ){ name = n;} public Person( String n,int a ) { name = n;age = a;} public Person( String n,String d,int a ) { _____________ department = d; } }
A.Global
B.Private
C.Static
D.Public
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
下列程序的输出结果是( )。class Demo {void test( ){ Systeme.out.pnnt( NO );}void test(int i){ System.out.print(a);}void test(int a,int b){ System.out.print(a+b);} }class Test {public static void main(String args[ ] ) {Demo de=new Demo( );de.test( );de.test(5);de.test(6,8);}}
A. File stream
B. Pipe stream
C. Randam stream
D. Filter stream
点击查看答案&解析
单项选择题
关系表中的每一横行称为一个( )。
A.元组
B.字段
C.属性
D.码
点击查看答案&解析
相关试题
给出下列的程序,其叙述正确的是( )。pu...
给出下列的不完整的方法,则下列的哪个声明...
下列哪个布局管理器使容器中各个构件呈网格...
JComponent的直接父类是( )。
下列哪个选项不能提高程序的性能