Sail E0 Webinar

MCQs

Total Questions : 105 | Page 10 of 11 pages
Question 91.

Which of these method of Object class can generate duplicate copy of the object 

on which it is called?


  1.    clone()
  2.    copy()
  3.    dublicate()
  4.    dito()
 Discuss Question
Answer: Option A. -> clone()

None.


Question 92.

Which of these classes provide implementation of map interface?


  1.    ArrayList
  2.    HashMap
  3.    LinkedList
  4.    DynamicList
 Discuss Question
Answer: Option B. -> HashMap

AbstractMap, WeakHashMap, HashMap and TreeMap provide implementation of map 

interface.


Question 93.

Which of these classes implements Set interface?


  1.    ArrayList
  2.    HashSet
  3.    LinkedList
  4.    DynamicList
 Discuss Question
Answer: Option B. -> HashSet

HashSet and TreeSet implements Set interface where as LinkedList and ArrayList 

implements List interface.


Question 94.

Which of these are legacy classes?


  1.    Stack
  2.    Hashtable
  3.    Vector
  4.    All of the mentioned
 Discuss Question
Answer: Option D. -> All of the mentioned

Stack, Hashtable, Vector, Properties and Dictionary are legacy classes.


Question 95.

Which of these method is used to insert value and its key?


  1.    put()
  2.    set()
  3.    insertElement()
  4.    addElement()
 Discuss Question
Answer: Option A. -> put()

None.


Question 96.

Arrays in Java are implemented as?


  1.    class
  2.    object
  3.    variable
  4.    None of the mentioned
 Discuss Question
Answer: Option B. -> object

None.

Question 97.

Which of these method is used to make a bit zero specified by the index?


  1.    put()
  2.    set()
  3.    remove()
  4.    clear()
 Discuss Question
Answer: Option D. -> clear()

None.


Question 98.

Which of these standard collection classes implements a linked list data structure?


  1.    AbstractList
  2.    LinkedList
  3.    HashSet
  4.    AbstractSet
 Discuss Question
Answer: Option B. -> LinkedList

None.


Question 99.

Which of these standard collection classes implements a dynamic array?


  1.    AbstractList
  2.    LinkedList
  3.    ArrayList
  4.    AbstractSet
 Discuss Question
Answer: Option C. -> ArrayList

ArrayList class implements a dynamic array by extending AbstractList class.


Question 100.

Which of these class is superclass of all other classes?


  1.    Math
  2.    Process
  3.    System
  4.    Object
 Discuss Question
Answer: Option D. -> Object

The object class class is superclass of all other classes.Object


Latest Videos

Latest Test Papers