题目内容

已知如下类说明: 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.n

查看答案
更多问题

String s=”Example String”; 下面哪些语句是正确的?()

A. s>>>=3;
B. int i=s.length();
C. s[3]=”x”;
D. String short_s=s.trim();
E. String t=”root”+s;

已知如下定义: String s = "story"; 下面哪些表达式是合法的?()

A. s += "books";
B. char c = s[1];
C. int len = s.length;
D. String t = s.toLowerCase();

年终结账一般包括年终转账、结清旧账和记入新账三个环节。()

交接班过程中发生事故,应由交班人员负责处理。()

答案查题题库