单项选择题

已知有下面的类说明:
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
相关试题
  • 阅读下列代码: public class Test pub...
  • 类A定义如下: class A private int x...
  • 给出下面代码段:x处于什么范围时打印字符...
  • 下列程序中的循环体将会被执行 ( ) pu...
  • 下列Java标识符,错误的是 ( )