What is the use of collections in java? How it is
implemented in real time applications?
Answers were Sorted based on User's Feedback
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 |
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 |
Assume a thread has lock on it, calling sleep() method on that thread will release the lock?
can u handle an error if u write Thowable in the catch class lise try { some errorneous code }catch(Throwable e){ ...}
What is a final class in java?
How big is a 32 bit integer?
What is assembly language?
how and when compiler knows that the Java code throws the checked Exception.
why static class in java or what is use of static class in java
what is the need to set path in java? how many ways to set path in java? Explain breif?
How many types of operators are there?
there are some duplicate values in ArrayList, how U'll get that array with out duplicate?
What are the benefits of operations?
What is the default access specifier for variables and methods of a class?