Can java list contain duplicates?



Can java list contain duplicates?..

Answer / Mangal Singh

Yes, a List in Java can contain duplicate elements. ArrayList, Vector and LinkedList are examples of Lists that allow duplicates.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What are three ways in which a thread can enter the waiting state in java programming?

1 Answers  


Write a program to print fibonacci series up to count 10.

1 Answers  


Difference between overloading and Overriding. <Giving a confusing example to test the concept.> (also asked in PA Consultancy Group,iflex,Value chain,IBM,CTS,Accenture, Tarang>

12 Answers   Accenture, CTS, Extensio, IBM, iFlex, PA Consulting, Symphony, Tarang,


What are the differences between checked exception and unchecked exception?

1 Answers  


Explain working of call by reference function invoking.

1 Answers   Amdocs,


What are the differences between processes and threads?

1 Answers  


Is null a string in java?

1 Answers  


Can subclass overriding method declare an exception if parent class method doesn't throw an exception?

1 Answers  


What is the difference between the reader/writer class hierarchy and the inputstream/outputstream class hierarchy in java programming?

1 Answers  


What is the use of protected in java?

1 Answers  


What are the uses of java?

1 Answers  


Can constructor return value?

1 Answers  


Categories