Answer Posted / kiran
you have SET INTERFACE in COLLECTION in java . where u can
store unique elements and if u try to add duplicate elements
it will raise an error
Is This Answer Correct ? | 10 Yes | 3 No |
Post New Answer View All Answers
Can we execute a program without main() method?
What is Classloader in Java?
What is the covariant return type?
Explain tree set and its features?
How do you add an element to an arraylist in java?
Does sprintf add a null terminator?
4.1 Supply contracts (in the form of comments specifying pre- and post conditions) for the enqueue() method of the LinkedQueue class given in the Appendix. (2) 4.2 Let Thing be a class which is capable of cloning objects, and consider the code fragment: Thing thing1 = new Thing(); //(1) Thing thing2 = thing1; //(2) Thing thing3 = (Thing) thing1.clone(); //(3) Explain how the objects thing2 and thing3 differ from each other after execution of the statements. (
What is difference between module and function?
How is a variable stored in memory?
Can we declare the static variables and methods in an abstract class?
What is an iterator interface in java programming?
How does map works in java?
What is rmi and steps involved in developing an rmi object?
What are the different types of data structures in java?
What is the purpose of static keyword in java?