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 |
If two threads call a static method at the same point of time, what will happen?
what is the main difference between string and stringbuffer? can you explain it with program?
what is the final keyword denotes in java?
Can a top level class be private or protected?
Variable of the boolean type is automatically initialized as?
Are true and false keywords?
What does function identity () do?
What is the largest long allowed by java?
worst case complexities of Quick sort and Merge sort.
diffrence b\w println() and printf()
What is command line used for?
What is meant by stack and queue?