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

How to provide security in java

0 Answers   Infosys, TCS, Tech Mahindra,


What does the “final” keyword mean in front of a variable? A method? A class?

0 Answers  


Which api is provided by java for operations on set of objects?

0 Answers  


How do you sort arrays in java?

0 Answers  


Which collection allows duplicate values in java?

0 Answers  






Can I have constructor in Interface?

2 Answers  


Can the interface be final?

0 Answers  


Does windows 10 need java?

0 Answers  


can any body tell me? does advance java and j2ee both are same.

4 Answers   CTS, Infosys,


where the static methods will live ,on stack ? can you explain brefly

1 Answers  


What is nested top-level class?

0 Answers  


why interaction with server using javascript is difficult

1 Answers  


Categories