R Ram Sharma • 3.40K Points Extraordinary Q. Which of the following collectors creates an immutable set? (A) Collectors.toSet() (B) Collectors.toCollection(TreeSet::new) (C) Collectors.toUnmodifiableSet() (D) Collectors.unmodifiableSet() Correct Answer - Option(C) Views: 6 Filed under category Java Hashtags: Share Manage Tags
Discusssion
Login to discuss.