顺丰java试完整版.docVIP

  • 11
  • 0
  • 约1.41万字
  • 约 9页
  • 2017-03-08 发布于贵州
  • 举报
顺丰java试完整版

1.Which is the range of char A. 2^7-2^7-1 B.0-2^16-1 C. 0-2^16 D.0-2^8 2.Given: 3. int i 1, j 10 ; 4. do 5. if i++ --j continue; 6. while i 5 ; After execution, what are the values for I and j? A. i 6 and j 5 B. i 5 and j 5 C. i 6 and j 4 D. i 5 and j 6 3.请选择下面这段代码的输出结果: 1 public class Test 2 public static void main String[] args 3 class Foo 4 public int i 3; 5 6 Object o Object new Foo ; 7 Foo foo Foo o; 8 System.out.println foo.i ; 9 10 A.compile error at line 6 B.compile error at line 7 C.compile error at line 8 D.print out 3 4.what interface does java.util.Hashtable implement A.java.util.Map B.java.util.List C.java.util.Hashable D.java.util.Collection 5. Which constructs a DataOutputStream? A. New dataInputStream “in.txt” ; B. New dataInputStream new file “in.txt” ; C. New dataInputStream new InputStream “in.txt” ; D. New dataInputStream new FileInputStream “in.txt” ; 6.Which two create an instance of an array? Choose Two A.int[] ia new int[15]; B.float fa new float[20]; C.char[] ca “Some String”; D.Object oa new float[20]; 7. Which statement is true? A. A grid bag layout can position components such that they span multiple rows and/or columns. B. The “North” region of a border layout is the proper place to locate a menuBar component in a Frame. C. Components in a grid bag layout may either resize with their cell, or remain centered in that cell at their preferred size. D. A border layout can be used to position a component that should maintain a constant size even when the container is resized. 8.对并发操作若不加以控制,可能会带来数据的 问题 A.不安全 B.死锁 C.死机 D.不一致 9、Which two statements are true regarding the creation of default constructor?(Choose Two) A、The default constructor initializes method variables B、The default constructor invokes the no-parameter constructor of the superclass C、The default constructor initializes the instance variables declared in the class D、If a class lacks a no-parameter constructor,

文档评论(0)

1亿VIP精品文档

相关文档