单项选择题
已知有下列类的说明,则下列哪个语句是正确的 ( )
public class Test
private float f=1.0f;
int m=2;
static int n=1;
public static void main(String arg[])
Test t=new Test();
A.f;
B.this,n;
C.Test.m;
D.Test.f;
点击查看答案
<上一题
目录
下一题>
热门
试题
单项选择题
下列程序的输出结果是 ( ) Public class fff void printValue(int m) doSystem.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
点击查看答案
单项选择题
下列的哪个程序段可能导致错误 ( )
A.String s="hello";
String t="good";
String k=s+t;
B.String s="hello";
String t;
t=s[3]+"one";
C.String s="hello";
String standard=s.toUpperCase();
D.String s="hello";
String t=s+"good";
点击查看答案
相关试题
下列程序的输出结果是 ( ) Public cl...
下列哪个选项可能包含菜单条 ( )
下列常见的系统定义的异常中,哪个是输入、...
树是结点的集合,它的根结点数目是 ( )
下列有关数据库的描述,正确的是 ( )