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

  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()

  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()

  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()

  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()