已知有下列类的说明,则下列哪个语句是正确的?
public class Test
{
private float f = 1.0f;
int m = 12;
static int n=1;
public static void main(String arg[])
{
Test t = new Test();
}
}
A)t.f;
B)this.n;
C)Test.m;
D)Test.f;
...全文
27912打赏收藏
请各位帮我做个选择题,最好能有说明,谢谢!!
已知有下列类的说明,则下列哪个语句是正确的? public class Test { private float f = 1.0f; int m = 12; static int n=1; public static void main(String arg[]) { Test t = new Test(); } } A)t.f; B)this.n; C)Test.m; D)Test.f;