单项选择题
已知有下面的类说明:
public class Test4
private float f=1.0f;
int m=12;
static int n=1;
public static void main(String args[])
Test4 e=new Test4();
在main()方法中,下面哪个的使用是正确的 ( )
A.f
B.this.n
C.Test4.m
D.Test4.f
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
下列程序中的循环体将会被执行 ( ) public class ex26 public static void main(String[]args) int n=4; while(n<=8) System.out.println(n); n++;
A.8次
B.2次
C.4次
D.5次
点击查看答案&解析
单项选择题
给出下面代码段:x处于什么范围时打印字符串“second”。 ( ) public class forLoopStatement public static void main(String[]args) int x=______; 给x赋值 if(x>0)System.out.println( first ); else if(x>-3)System.out.println( second ); elseSystem.out.println( third );
A.x>0
B.x>-3
C.x<=-3
D.x<=0&x>-3
点击查看答案&解析
相关试题
下面是用户程序对Applet类中方法paint()...
Java的图形界面技术经历了两个发展阶段,分...
下列是一个Java Applet程序,填空使它的功...
在Java语言的所有方法中,比较特殊的一类方...
paint()方法带有一个参数,它是java.awt...