Pages

Collection FrameWork: Page-1

What is Collection FrameWork?

Java Collection Framework is a set of classes and interfaces that collectively  provides implementation for common reusable collection data structure.

Who developed Java Collection Frame Work?
Java Collection Framework (JCF) was developed by Joshua Bloch and firstly it was intoduced in JDK 1.2 in 1998.

What is need of Collection Framework in Java?
Before introducing Collection Framework, Java developers were dependent on Arrays to implement all sort of data structure in java. It arises following problems:
  • Arrays are fixed in size. Once we created an array there is no chance of increasing or decreasing size dynamically based on our requirement. In this case we should know the size in advance, which may not be possible always.
  • Arrays can hold only homogeneous data elements.(Though this may be solve by using Object type array)
  • No ready-made methods were available for sorting, adding, removing and other such operations on  elements of arrays. Each functionality need to be implemented by developers manually.
What Collection FrameWork offers?
Collection framework provides a rich set of interfaces and classes to handle with different operations on different type of data structures.
                                           
       <<Previous                                                                                                    Next>>

No comments:

Post a Comment