What is the use of collections in java? How it is
implemented in real time applications?

Answers were Sorted based on User's Feedback



What is the use of collections in java? How it is implemented in real time applications?..

Answer / srikanth reddy

they are used to store elements in java like arrays

ArrayList al=new ArrayList();
al.add("sri");
al.add(new Integer(99);

Is This Answer Correct ?    7 Yes 7 No

What is the use of collections in java? How it is implemented in real time applications?..

Answer / pradip mishra(b-tech it)

interfaces, implementations, and algorithms — that comprise
the Java Collections Framework.

General-purpose implementations are the most commonly used
implementations, designed for everyday use. They are
summarized in the table below.
Special-purpose implementations are designed for use in
special situations and display nonstandard performance
characteristics, usage restrictions, or behavior.
Concurrent implementations are designed to support high
concurrency, typically at the expense of single-threaded
performance. These implementations are part of the
java.util.concurrent package.
Wrapper implementations are used in combination with other
types of implementations, often the general-purpose ones,
to provide added or restricted functionality.
Convenience implementations are mini-implementations,
typically made available via static factory methods, that
provide convenient, efficient alternatives to general-
purpose implementations for special collections (for
example, singleton sets).
Abstract implementations are skeletal implementations that
facilitate the construction of custom implementations —
described later in the Custom Collection Implementations
section. An advanced topic, it's not particularly
difficult, but relatively few people will need to do it.

Is This Answer Correct ?    2 Yes 6 No

Post New Answer

More Core Java Interview Questions

Why do we use bufferedreader?

0 Answers  


How do you check whether the list is empty or not in java?

0 Answers  


Name the package that always imported by default?

4 Answers  


What is size_t?

0 Answers  


What about features of local inner class?

0 Answers  


Define jre i.e. Java runtime environment?

0 Answers  


Can I learn java in 3 months?

0 Answers  


Can you override a final method?

0 Answers  


all are saying java doesn't support multiple inheritance but by default Object class is super class for all the user defined classes and we can extend atmost one class so each class can extend more than one class so java supports multiple inheritance?i am confused with this,pls any one explain me.

4 Answers  


Explain the differences between static and dynamic variables?

0 Answers   Fidelity,


what is meant by UP& DOWN casting in java?

6 Answers  


What is the file extension for java?

0 Answers  


Categories