ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
Which class has no duplicate elements?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Which class has no duplicate elements?
Answer
# 1
The java.util.Set interface and related implementations dont
support duplicate elements.
 
Is This Answer Correct ?    3 Yes 0 No
Ranganathkini
 
  Re: Which class has no duplicate elements?
Answer
# 2
in java .util package there is one interface (set interface)
that interface does not allows the duplicate values.that 
interface implementations class are 
hashset,treeset....these classes don't allow the duplicate 
values.
 
Is This Answer Correct ?    3 Yes 0 No
Ramanareddy333
 
 
 
  Re: Which class has no duplicate elements?
Answer
# 3
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 ?    1 Yes 0 No
Selvan
 
  Re: Which class has no duplicate elements?
Answer
# 4
Which one will not allow duplicates, is it HashMap or 
HashTable? Please explain the corect answer with an 
example. Thanks in advance
 
Is This Answer Correct ?    2 Yes 0 No
Venkatesh
 
  Re: Which class has no duplicate elements?
Answer
# 5
HashSet
 
Is This Answer Correct ?    2 Yes 0 No
Ravikiran
 
  Re: Which class has no duplicate elements?
Answer
# 6
set wont allow duplicate element all the classes implementin
set interface wont allow for eg HashSet TreeSet
Hash map will allow for two different key u can have same value
 
Is This Answer Correct ?    2 Yes 0 No
Shweta
 
  Re: Which class has no duplicate elements?
Answer
# 7
the set inteface does'nt allow duplicate 
elements.therefore,the add() method return false if an 
attempt is made to add duplicate elements to a set.
 
Is This Answer Correct ?    2 Yes 0 No
Neeti
 
  Re: Which class has no duplicate elements?
Answer
# 8
hashset,treeset....these classes don't allow the duplicate 
values.
 
Is This Answer Correct ?    0 Yes 0 No
Rajesh
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
What is an abstract class and abstract method?  4
what is difference between prepare stetement and callable starement with example? CMC1
What is the difference between throw and throws? What is the similarity between try and throw?  2
How applets will communicate with each other?  1
what is abstract method with example? Virtusa5
long d =10;int i =0;i=d; /// is this possible? If d is very long number (10 digits or some thing) then?  3
I/O blocking means?  1
If two threads call a static method at the same point of time, what will happen? KPIT1
What is garbage collection in Java, and how can it be used ? Wipro10
In real time project which driver did u use? What is the main functionality of the Prepared Statement? Photon1
what is the diff between Servletcontext and servletconfig?  5
Why all programming languages have main as a execution starting point?  2
Which of these methods belong to Thread & Object class? join, yield, sleep, wait, notify Ericsson2
What is singleton class?  6
What are the OOAD concepts in java explain with examples? Aricent4
A abstract class extending an abstract class.Super class has both abstract and non-abstract methods.How can we implement abstract and non-abstract mehtods? Explain with snippet  3
Difference between prefix and postfix forms of the ++operator?  2
Is java is a fully object object oriented language? TCS15
What is the difference between C++ & Java? Syntel21
Which class is the immediate superclass of the Container class?  1
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com