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

    View Answer

    Workspace

    Discuss Discuss in Forum


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

    View Answer

    Workspace

    Discuss Discuss in Forum


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

    View Answer

    Workspace

    Discuss Discuss in Forum


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

    View Answer

    Workspace

    Discuss Discuss in Forum


  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

    View Answer

    Workspace

    Discuss Discuss in Forum


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

    View Answer

    Workspace

    Discuss Discuss in Forum


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

    View Answer

    Workspace

    Discuss Discuss in Forum


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

    View Answer

    Workspace

    Discuss Discuss in Forum


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

    View Answer

    Workspace

    Discuss Discuss in Forum


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

    View Answer

    Workspace

    Discuss Discuss in Forum