题目内容

下面代码执行后的输出是什么? outer: for(int i=0;i<3; i++) inner: for(int j=0;j<2;j++) { if(j==1) continue outer; System.out.println(j+ “ and “+i); }()

A. 0 and 0
B. 0 and 1
C. 0 and 2
D. 1 and 0
E. 1 and 1
F. 1 and 2G.2 and 0H.2 and 1I.2 and 2

查看答案
更多问题

已知如下类说明: 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();

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

答案查题题库