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

CSE MCQs :: JAVA MCQs

  1. Which of these method is used to make all elements of an equal to specified value?
  2. A.
    add()
    B.
    fill()
    C.
    all()
    D.
    set()

  3. Which of these method of Array class is used sort an array or its subset?
  4. A.
    binarysort()
    B.
    bubblesort()
    C.
    sort()
    D.
    insert()

  5. Which of these methods can be used to search an element in a list?
  6. A.
    find()
    B.
    sort()
    C.
    get()
    D.
    binaryserach()

  7. Which of these method is used to change an element in a LinkedList Object?
  8. A.
    change()
    B.
    set()
    C.
    redo()
    D.
    add()

  9. Which of these standard collection classes implements all the standard functions on list data structure?
  10. A.
    Array
    B.
    LinkedList
    C.
    HashSet
    D.
    AbstractSet

  11. Which of these classes implements Set interface?
  12. A.
    ArrayList
    B.
    HashSet
    C.
    LinkedList
    D.
    DynamicList

  13. Which of these method is used to make all elements of an equal to specified value?
  14. A.
    add()
    B.
    fill()
    C.
    all()
    D.
    set()

  15. Which of these method of Array class is used sort an array or its subset?
  16. A.
    binarysort()
    B.
    bubblesort()
    C.
    sort()
    D.
    insert()

  17. Which of these methods can be used to search an element in a list?
  18. A.
    find()
    B.
    sort()
    C.
    get()
    D.
    binaryserach()

  19. Which of these method is used to change an element in a LinkedList Object?
  20. A.
    change()
    B.
    set()
    C.
    redo()
    D.
    add()