试题详情
- 单项选择题 public static void test(String str) { int check = 4; if (check = str.length()) { System.out.print(str.charAt(check -= 1) +“, “); } else { System.out.print(str.charAt(0) + “, “); } } and the invocation: test(”four”); test(”tee”); test(”to”); What is the result?()
A、 r, t, t,
B、 r, e, o,
C、 Compilation fails.
D、 An exception is thrown at runtime.
- C
关注下方微信公众号,在线模考后查看
热门试题
- If class D
- 1. packageQ
- 回文数是指正读和反读都一样的正整数&en
- 有一个已经排好序的数组。现输入一个数,要
- Given 1.&ensp
- class MyThread
- 同一个包的子类能否访问父类的保护级成员变
- 小程序重载的本质是什么?()
- 11. class&ensp
- public class&e
- 为了使得System.out.print
- 下面的类表示一个矩形,请找出源代码中的错
- 现有: class&ens
- public class&e
- A custom̳
- public class&e
- Which statement
- package geomet
- What is th
- 现有: class&ens