执行String.Compare()返回的结果是?
A.0
B.-1
C.1
D.false
A.0
B.-1
C.1
D.false
A、The receiver is very sad because his dog died yesterday.
B、The receiver is very tried and bored.
C、The audience are listening attentively to the speaker.
D、The speaker cannot be heard because some people were talking loudly.
A、ArrayIndexOutOfBoundException
B、ClassCastException
C、ArithmeticException
D、No exception
分析下面的程序,写出程序的执行结果 public class Test { public static void main(String[] args) { final Person p = new Person("张三", 23); p.setName("李四"); p.setAge(24); System.out.println(p); } } class Person { private String name; private int age; public Person() { super(); } public Person(String name, int age) { super(); this.name = name; this.age = age; } public String getName() { return name; } public void setName(String name) { this.name = name; } public int getAge() { return age; } public void setAge(int age) { this.age = age; } @Override public String toString() { return "我的姓名是:" + name + ",我的年龄是:" + age ; } }
A、11,10
B、10,10
C、10,11
D、11,11
A.7
B.5
C.25
D.good!
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!