Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is difference between colection and collections?

Answers were Sorted based on User's Feedback



what is difference between colection and collections?..

Answer / upendra sharma

collection is interface but collections is class

Is This Answer Correct ?    2 Yes 0 No

what is difference between colection and collections?..

Answer / pavan kumar

collection is an interface to represent a group of individual object as a single entity.where as collections is an utility class to define several utility methods for collection implemented class objects

Is This Answer Correct ?    1 Yes 0 No

what is difference between colection and collections?..

Answer / zaheer ahmed

"You can so easily mistake "Collections" for "Collection"—be careful.
Keep in mind that Collections is a class, with static utility methods, while Collection
is an interface with declarations of the methods common to most collections
including add(), remove(), contains(), size(), and iterator()"

Reference:
Mc Graw Hill - SCJP Sun Certified Programmer for Java 6 Exam 310-065 (2008)Page 559

Is This Answer Correct ?    1 Yes 0 No

what is difference between colection and collections?..

Answer / nirmal kanna s

The Collections class is a utility class having static methods for doing operations on objects of classes which implement the Collection interface. For example, Collections has methods for finding the max element in a Collection.

The Collection interface defines methods common to structures which hold other objects. List and Set are subinterfaces of Collection, and ArrayList and HashSet are examples of concrete collections.

Collection : The root interface of Java Collections Framework.

Collections : A utility class that is a member of the Java Collections Framework.

Is This Answer Correct ?    1 Yes 0 No

what is difference between colection and collections?..

Answer / devraj

Collection is an root interface for collection framework and
implemented by collection classes like List,Set ...etc
Whereas Collections is class which contains static methods
to operate on collection classess
EX:
List l=New ArrayList();
l.add("dev");
l.add("raj");
l.add("dev");
l.add("raj");
l.add("dev");
l.add("raj");
now i want to know no of dev in List
like fallowing
System.out.println(Collections.frequency(l,"dev"));

Is This Answer Correct ?    1 Yes 0 No

what is difference between colection and collections?..

Answer / sanjay

Collection is an interface while Collections is a utility class.

Is This Answer Correct ?    1 Yes 0 No

what is difference between colection and collections?..

Answer / umesh kumar samal

Collection
-----------
Collection is a interface these hold all sub interface like set ,list,map that is like herichy and to in one root
Collections
-------------
Collections is a class user property these are using in all collection class in sorting the element in a proper order
Collections.sort(obj ref);

Is This Answer Correct ?    1 Yes 0 No

what is difference between colection and collections?..

Answer / haribabu kommi

collections is an Utility class.collection is an interface
which implemented by all other interfaces like set,map,list..

Is This Answer Correct ?    1 Yes 1 No

what is difference between colection and collections?..

Answer / vijay bhupathi

Collections is a utility class having static methods(ex.sort).
Collection is an interface which Set,List and Queue
extend.(just extend,there are no direct implementations of
Collection)

Is This Answer Correct ?    0 Yes 0 No

what is difference between colection and collections?..

Answer / rajyalakshmi vedapalli

collection is a interface and collections are utility
classes and the collections are the member in
collectionsframework(readymade datastructure)

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

How to implement Singleton

6 Answers   DELL,


Can I learn java without any programming experience?

0 Answers  


Explain about arraylist?

0 Answers  


Explain about collection interface in java?

0 Answers  


What is the difference between yielding and sleeping in java programming?

0 Answers  


Write a program in java to establish a connection between client and server?

0 Answers  


Can an unreachable object become reachable again?

3 Answers  


What is ph and buffers?

0 Answers  


What does the exclamation mark mean in java?

0 Answers  


Java is pass by value or pass by reference? Explain

0 Answers  


Why wait and notify methods are declared in object class?

0 Answers  


Hi Friends, Can u give few interview questions which relates ArrayList and Hashmap. I mean how to link ArrayList and HashMap.I know this is not good way of asking questions like this , but i need

1 Answers   Microsoft, Wipro,


Categories