what is difference between colection and collections?

Answers were Sorted based on User's Feedback



what is difference between colection and collections?..

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

what is difference between colection and collections?..

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

what is difference between colection and collections?..

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

what is difference between colection and collections?..

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

what is difference between colection and collections?..

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

what is difference between colection and collections?..

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

what is difference between colection and collections?..

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

what is difference between colection and collections?..

Answer / ravikiran

Collection is an interface which contains methods to access
the objects in a collection

Is This Answer Correct ?    13 Yes 8 No

what is difference between colection and collections?..

Answer / abhay

Abhi , You are right.

Collection is an interface and collections is a utility classes

Is This Answer Correct ?    6 Yes 1 No

what is difference between colection and collections?..

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

Post New Answer

More Core Java Interview Questions

How many bytes is a char in java?

0 Answers  


Explain the difference between Unicast and Multicast objects?

1 Answers  


List methods available in Java Queue interface

1 Answers  


Can we change the value of static variable?

0 Answers  


Is array an object in java?

0 Answers  






suppose in a class there is a code like this: { Set hs=new Hashset(); hs.add(new Emp("kathy",1000)); hs.add(new Emp("kathy",2000)); } how can u avoid the above code in your class as set won't allow duplicate objects?

3 Answers  


Hi Every One I Have Small Doubt Please answer This???????????????????????????? I Want to use AbstractList class methods(java.util.AbstractList) My Program is import java.util.*; class DemoOne extends AbstractList { public static void main(String[] args) { AbstractList a=new DemoOne();//This One is Correct?? DemoOne a1=new DemoOne();//This One is Correct?? Both Are Not Working System.out.println("Hello World!"+a); System.out.println("Hello World!"+a1); } } Error IS: DemoOne.java:2: DemoOne is not abstract and does not override abstract method get(int) in java.util.AbstractList class DemoOne extends AbstractList AnyOne can Please Provide The Solution????????????????????????? Plzzzzzzz

3 Answers  


What is a memory leak in java?

0 Answers  


Can we call virtual funciton in a constructor ?

0 Answers   XX,


What are the restriction imposed on a static method or a static block of code?

0 Answers  


Is empty set an element of empty set?

0 Answers  


What is difference between iterator access and index access?

0 Answers  


Categories