Home / CSE MCQs / JAVA MCQs :: java.util Package

CSE MCQs :: JAVA MCQs

  1. Which of these class object has architecture similar to that of array?
  2. A.
    Bitset
    B.
    Map
    C.
    Hashtable
    D.
    All if the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. Which of these method is used to make a bit zero specified by the index?
  4. A.
    put()
    B.
    set()
    C.
    remove()
    D.
    clear()

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. Which of these method is used to calculate number of bits required to hold the BitSet object?
  6. A.
    size()
    B.
    length()
    C.
    indexes()
    D.
    numberofBits()

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. Which of these is a method of class Date which is used to search weather object contains a date before the specified date?
  8. A.
    after()
    B.
    contains()
    C.
    before()
    D.
    compareTo()

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. Which of these methods is used to retrieve elements in BitSet object at specific location?
  10. A.
    get()
    B.
    Elementat()
    C.
    ElementAt()
    D.
    getProperty()

    View Answer

    Workspace

    Discuss Discuss in Forum