How to eliminate duplicates from an array?

Answer Posted / gajendra

using hash map or treeset of collection framework

Is This Answer Correct ?    8 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a null point?

553


How do you use substring in java?

542


Why string is not thread safe?

535


What does snprintf return?

541


I have multiple constructors defined in a class. Is it possible to call a constructor from another constructor’s body?

583






How do you implement tree mirroring in java?

583


Can you create an object of an abstract class?

547


Why singleton is not thread safe?

561


What is java lang object?

525


What are 3 boolean operators?

527


Name the components that are termed to be Heavy-weight component but available in Light-weight components?

1980


Explain the concept of hashtables?

609


What is a default constructor and also define copy contrucyor?

593


Can you instantiate the math class in Java?

603


Can we cast any other type to boolean type with type casting?

533