what is difference between colection and collections?
Answers were Sorted based on User's Feedback
Answer / nita dhumal
Yes all are said is right.
Collection is an interface which implented by all other interfaces. while collections is utility class which contain method like sorting method.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / surya
Collection is an interface it provides implementations of
more specific subinterfaces like Set and List.
Collections class consists exclusively of static methods
that operate on or return collections.
| Is This Answer Correct ? | 2 Yes | 4 No |
Collection is root interface for List,Set,Map where as
Collection is utility class which has only static methods to
manipulate on object for eg sort
| Is This Answer Correct ? | 1 Yes | 4 No |
Answer / manoj
what is the difference between collection class vs
collections interface ? not as colection and collections
A collection (sometimes called a container) is an object
that groups multiple elements into a single unit.
Collections are used to store, retrieve and manipulate data,
and to transmit data from one method to another. Collections
typically represent data items that form a natural group,
like an order (a collection of order lines), a mail folder
(a collection of messages), or a telephone directory (a
collection of name/phone-number pairs).
| Is This Answer Correct ? | 9 Yes | 25 No |
Answer / sandeep tyagi
collection is a interface impplemented by all other
interfaces like List,set..where as collections is not a
class.But its a Framework.Harikrishna if u have any
confeusion then go thru with sun java tutorial
| Is This Answer Correct ? | 27 Yes | 116 No |
Why Set interface contains unique elements, what internally implemented for this so that it contains unique elements?
What is array in java?
What is finally in exception handling?
what is instanceof operator used in java?
What is the requirement of thread in java?
Is string an object?
Explain parallel processing in java8?
Difference between final and effectively final ? Why is effectively final even required ?
What is difference between abstract class & final class
What is the purpose of return statement?
What is appletviewer?
What is the use of default method in interface in java? Explain