摘要:
一、不可变类和不可变对象 Normally,you create an object and allow its contents to be changed later.However ,occasionally it is desirable to create an object whose 阅读全文
摘要:
异常处理 1)What is displayed on the console when running the following program? class Test { public static void main (String[ ] args) { try { System.out.p 阅读全文
摘要:
1)Analyze the following code: public class Test { public static void main(String[ ] args) { B b = new B(); b.m(5); System.out.println("i is " + b.i); 阅读全文
摘要:
1)You can declare two variables with the same name in ________. 1) _______ A)a method one as a formal parameter and the other as a local variable B)di 阅读全文
摘要:
1)Which code fragment would correctly identify the number of arguments passed via the command line to a Java application, excluding the name of the cl 阅读全文
摘要:
1)________ represents an entity(实体) in the real world that can be distinctly identified. 1) _______ A)A data field B) An object C)A method D) A class 阅读全文
摘要:
Description Given a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub-array of size 1*1 or greater locate 阅读全文
摘要:
1)What is the representation of the third element in an array called a? 1) _______ A)a(3) B) a(2) C) a[2] D) a[3] 2)If you declare an array double[ ] 阅读全文
摘要:
1)Suppose your method does not return any value, which of the following keywords can be used as a return type? A)void B)public C)int D)double E)None o 阅读全文