Home / CSE MCQs / JAVA MCQs :: Discussion

Discussion :: JAVA MCQs

  1. Which of these is true about unmodifiableCollection() method?
  2. A.
    unmodifiableCollection() returns a collection that cannot be modified.
    B.
    unmodifiableCollection() method is available only for List and Set.
    C.
    unmodifiableCollection() is defined in Collection class.
    D.
    None of the mentioned.

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    unmodifiableCollection() is available for al collections, Set, Map, List etc.


Be The First To Comment