Which class has no duplicate elements?

Answer Posted / selvan

java.util.Set Packages, there is no dulicate elements.Bcoz
these interfaces doesn't allows the dulicate values or
elements. For example. HashMap, HashSet, TreeSet and so on.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What makes a function well defined?

526


What is Java Shutdown Hook?

615


Write a code to show a static variable?

620


What is difference between next () and nextline () in java?

542


What is sortedmap interface?

558






Explain reverse a linked list recursive java solution?

535


What if static is removed from main method?

575


Is static variable stored in heap?

509


take an array with -ve and +ve value both.find out the nearest value of 0(zero).if two values are same like(-2 and +2)then extract +2 is nearest of 0(zero).

1535


Write a function to print Fibonacci series and Tribonacci series?

762


List implementations of list interface?

567


What are actual parameters?

524


What is the use of generics? When was it added to the Java development Kit?

560


What is comparator in java?

559


What is the string function?

559