面试题,在线等,
Which of  the following statement about Java collections are true?
A)An implementation of the Set interface contains no duplicate elements.
B) An implementation of the Set interface contains duplicate elements.
C) An implementation of the List interface contains elements in random order.
D) An implementation of the Set interface contains elements in a fixed order

解决方案 »

  1.   

    题2
    帮帮忙,在线等,
    What is a Java “transient” object?
      

  2.   

    Which of  the following statement about Java collections are true?
    A)An implementation of the Set interface contains no duplicate elements.
    B) An implementation of the Set interface contains duplicate elements.
    C) An implementation of the List interface contains elements in random order.
    D) An implementation of the Set interface contains elements in a fixed ordera
      

  3.   

    Which statement describes guaranteed behavior of the garbage collection and finalization mechanisms?
    a)Object will not be destroyed until they have no references to them.
    b)The finalize() method will never be called mored more than once on an object.
    c)An object eligible for garbage collection will eventually be destroyed by the garbage collector.
    d)if object A became eligible for garbage collection before object B ,then object A will be destroyed  before object B.
    e) An object,once eligible for garbage collection,can never becom accessible by a live thread
    在线等
      

  4.   

    Which of the following statement is true?
    a) if an exception is thrown during the execution of the finalize() method of an eligible object,
    then the exception is ignored and the object is destroyed.
    b) All j\objects have a finalize()method.
    c) Object can be destroyed by explicitly calling the finalize() method.
    d) The finalize() method can be declared with any accessibility.
    e) The compiler will fail to compile code that defines an overriding  finalize() method that does not explicitly call the overridden finalize()method from the superclass