what is difference between colection and collections?
Answers were Sorted based on User's Feedback
Answer / harikrishna
collection is a interface impplemented by all other
interfaces like List,set..where as collections is a class.
Is This Answer Correct ? | 149 Yes | 27 No |
Answer / t.vijay nath
Collection is the root interface in collection
hierarchy,groups multiple elements into a single unit, it
allows duplicate & non-duplicate elements which may be
ordered or unordered.
Collections is a class which extends Object class & it
consists exclusively static methods .It is a member of Java
Collections Framework.Collections are used to store,
retrieve, manipulate, and communicate aggregate data
Is This Answer Correct ? | 65 Yes | 11 No |
Answer / appu
Collection is an interface which can be implemented the
List, Set,Sorted Set,and Queue. Where as Collections is an
utility class which contain the utility methods such as
sorting etc.
Is This Answer Correct ? | 34 Yes | 2 No |
Answer / johnj
Harikrishna is right about Collections class...Collections
class is a member of Java Collections Framework.. Sandeep
Tyagi u can find that in sun java tutorial..
Is This Answer Correct ? | 32 Yes | 12 No |
Answer / abhi
As above answers have some mistake.....
collection is a interface and collections is a utility classes
Is This Answer Correct ? | 24 Yes | 4 No |
Answer / ravi velu
Abhi , You are right.
Collections is the Utility Class , But Collection is an
interface which is implemented in all Collection Classes.
Is This Answer Correct ? | 22 Yes | 4 No |
Answer / mike
collection(lowercase c)represents any of the data
structures in which object are stored and iterated over.
Collection(Uppercase C)represents the interface which is
extended by three other interfaces(Set,List and Queue,Map
doesnt extend Collection interface).Guys,its extended not
implemented(hope you all know the difference between the
two,interface can extend interface,remember?)
Collections(upper case C with s at the end)this the
java.util.Collections class that holds a pile of static
methods for use with collections.
Is This Answer Correct ? | 7 Yes | 1 No |
Answer / ravikiran
Collection is an interface which contains methods to access
the objects in a collection
Is This Answer Correct ? | 13 Yes | 8 No |
Answer / abhay
Abhi , You are right.
Collection is an interface and collections is a utility classes
Is This Answer Correct ? | 6 Yes | 1 No |
Answer / srinu
Collection is the interface. which can be implemented
List,set,Queue.This interface contain only instance methods.
Collection is the class .This class contain utility methods
such as all algorithm oriented methods.This class contain
only static methods.
Is This Answer Correct ? | 15 Yes | 12 No |
How many types of thread in java? give the name
How do you include a string in java?
Why is it called buffering?
can anyone explain me the concept of autoboxing?
How does hashset work in java?
What is the difference between array and arraylist? what is the difference between arraylist and linkedlist?
What are Transient and Volatile Modifiers?
3 Answers SAP Labs, TUP Manila,
is it mandatory to deaclare all variables public static fianl in interfaces?if i declare like in the below program, public interface A { public static final int I=0; int j=0; } in interface A,what is the difference between I,j?
Can extern variables be initialized?
How can you read content from file in java?
What is the final field modifier?
Explain about abstract classes in java?