How can you eliminate duplicates?
Answers were Sorted based on User's Feedback
Answer / deepak kumar sungh
Any Set. set always contains unique elements. However, you
must take care in case of objects where you need to define
the hashCode and equals method
Is This Answer Correct ? | 2 Yes | 0 No |
I have a String s = java; What is the output when I say s.replaceAll('j', 'k'); Also what is the value of s after replacing?
What is audio clip interface? Name few methods of it ?
How do you declare an array that will hold more than 64KB of data?
What is an image buffer?
What is inner class?what is the use of inner class?where we create the object for inner class? and inner class can extend any class or inner class can implement any interface?
What is the specification of ?CODEBASE? in an applet?
what are the design patterns in struts?
Can we serialize static variables in java?
How is treeset implemented in java?
Can memory leak happen java?
Can a class have more than one object?
can we create object for static class in java
14 Answers IAP Company, IBM, Marlabs, mPortal, TCS,