IndiaBIX.com
Arithmetic Aptitude Data Interpretation
Logical Reasoning Verbal Reasoning Non Verbal Reasoning
General Knowledge
Sudoku Number puzzles Missing letters puzzles Logical puzzles Playing cards puzzles Clock puzzles
C Programming C++ Programming C# Programming Java Programming
Microbiology Biochemistry Biotechnology Biochemical Engineering
Civil Engineering Mechanical Engineering Chemical Engineering Networking Database Questions Computer Science Basic Electronics Digital Electronics Electronic Devices Circuit Simulation Electrical Enigneering Engineering Mechanics Technical Drawing
Placement Papers Group Disucssion HR Interview Technical Interview Body Language
Aptitude Test Verbal Ability Test Verbal Reasoning Test Logical Reasoning Test C Programming Test Java Programming Test Data Interpretation Test General Knowledge Test
Data Structures Operating Systems Networking DATABASE Database Basics SQL Server Basics SQL Server Advanced SQL Server 2008 JAVA Core Java Java Basics Advanced Java UNIX Unix File Management Unix Memory Management Unix Process Managemnt C Interview Questions The C Language Basics .NET Interview Questions .NET Framework ADO.NET ASP.NET Software Testing

Java Programming - Objects and Collections - Discussion

@ : Home > Java Programming > Objects and Collections > General Questions - Discussion

Read more:

"Everyone is wise until he speaks."
- (Proverb)
Ashok said: (Mon, Jun 6, 2011 06:05:25 AM)    
 
I think its wrong because as the question is like collection that don't allow duplicate elements not the keys, so it must be option D.

Chandra said: (Tue, Jun 14, 2011 07:22:10 AM)    
 
Map allow duplicates but I will overide with previous value. So we can, t say duplicate keys not allow.

Dave Hampton said: (Wed, Dec 7, 2011 05:14:11 PM)    
 
The question is ambiguous. It does not refer to 'unique keys' - it just states 'no duplicates'. You can in fact have duplicate object values in a Map referenced by different keys. The answer to the question as it stands is java.util.Set which translates to answer D as it's not listed.

Saroj Kumar Das said: (Wed, Mar 14, 2012 09:56:31 PM)    
 
See Map don't contain duplicate keys but it contain duplicate values, it may be uses HashMap. I think the answer is D.

Sonam said: (Wed, Sep 5, 2012 11:49:45 AM)    
 
Yes, the correct answer is D because the answer is asking about duplicate elements not the duplicate keys.

Kirk said: (Thu, Apr 11, 2013 06:16:50 AM)    
 
This is simply a confusingly worded question.

If you consider Key/Value pairs as the element then the answer is correct, however if you only care about the Value then the answer is wrong.

I got it wrong, but I think that considering the Key/Value pair as the element is probably more correct.

I'd still give 1/2 points for selecting Map !

Write your comments here:
Name *:     Email:


© 2008-2013 by IndiaBIX™ Technologies. All Rights Reserved | Copyright | Terms of Use & Privacy Policy

Contact us: info@indiabix.com     Follow us on twitter!