123ArticleOnline Logo
Welcome to 123ArticleOnline.com!
ALL >> Computer-Programming >> View Article

Classes & Interfaces Of Collection Framework In Java

Profile Picture
By Author: Infocampus
Total Articles: 33
Comment this article
Facebook ShareTwitter ShareGoogle+ ShareTwitter Share

Introduction:
In java collection is a framework which is mainly used to provides an architecture for storing and manipulating the group of objects .Collection stores the hetrogenous types of data.
Array stores the homogenous types of data . To store the different kind of data , we need Collection.All the operations that we perform on data like searching, sorting, insertion, manipulation, deletion etc. can be performed by Java Collections.
Collection framework provides many interfaces as Set, List, Queue, Deque etc. and classes ArrayList, Vector, LinkedList, PriorityQueue, HashSet, LinkedHashSet, TreeSet etc .
What is Collection in java ?
Collection specifies a single unit of objects i.e. a group. java course in bangalore
What is framework in java ?
- It provides readymade architecture.
- It represents set of classes and interface.
What is Collection framework ?
Collection framework provides a unified architecture for storing and manipulating group of objects. It has:
1. Interfaces and its implementations i.e. classes
2. Algorithm
Classes in Collection ...
... :
Java ArrayList class :
Java ArrayList class uses a dynamic array for storing the elements. It inherits AbstractList class and implements List interface.
Properties for ArrayList :
- It can contain duplicate elements.
- It maintains insertion order.
- It is non synchronized.
- It allows random access because array works on the index.
- In Java ArrayList class, java training center bangalore manipulation is slow because a lot of shifting needs to be occurred if any element is removed from the array list.
Java LinkedList class :
Java LinkedList class uses doubly linked list to store the elements. It provides a linked-list data structure. It inherits the AbstractList class and implements List and Deque interfaces.
Properties for LinkedList :
- It can contain duplicate elements.
- It maintains the insertion order.
- It is non synchronized.
- Its manipulation is fast because no shifting needs to be occurred.
- It can be used as list, stack or queue. Advanced java training in bangalore
Java HashSet class:
It is used to create a collection that uses a hash table for storage the elements . It inherits the AbstractSet class and implements Set interface.
Properties for HashSet :
- HashSet used the mechanism called hashing to store the elements.
- It contains unique elements only.
Java LinkedHashSet class :
Java LinkedHashSet class is a Hash table and Linked list implementation of the set interface. It inherits HashSet class and implements Set interface.
Properties for LinkedHashSet class are:
- It Contains unique elements only like HashSet.
- It provides all optional set operations, and permits null elements.
-It maintains the insertion order.
Java TreeSet class : java/j2ee classes bangalore
Java TreeSet class implements the Set interface . It inherits AbstractSet class and implements NavigableSet interface. The elements of TreeSet class are stored in ascending order.
Properties for TreeSet class are:
- It contains unique elements only like HashSet.
- Its access and retrieval times are quiet fast.
-It maintains ascending order.
Java Queue Interface :
It orders the element in FIFO(First In First Out) manner. In FIFO, first element is removed first and last element is removed at last.
Java Map Interface :
A map contains values on the basis of key i.e. key and value pair. Each key and value pair is known as an entry. Best core java training in bangalore Map contains only unique keys . It can contains duplicate values .
Map is useful if you have to search, update or delete elements on the basis of key.
Java HashMap class ;
It implements the map interface by using a hashtable. It inherits AbstractMap class and implements Map interface.
Properties for Java HashMap class are:
- A HashMap contains values based on the key.
- It contains only unique elements.
- It may have one null key and multiple null values.
- It maintains no order.
Java LinkedHashMap class :
Java LinkedHashMap class is Hash table and Linked list implementation of the Map interface, with the iteration order. Java course in bangalore It inherits HashMap class and implements the Map interface.
Properties for the HashMap class are:
- It contains values based on the key.
- It contains only unique elements.
-It may have one null key and multiple null values.
- It is same as HashMap instead maintains insertion order.
Java TreeMap class :
TreeMap class implements the Map interface by using a tree. It provides an efficient means of storing key/value pairs in sorted order.
Properties for the Java TreeMap class are:
- A TreeMap contains values based on the key. It implements the NavigableMap interface and extends AbstractMap class.
- It contains only unique elements.
- It cannot have null key but can have multiple null values.
- It is same as HashMap instead maintains ascending order.
This is the short description for the collection framework . To get the more knowledge on Java for getting a job as java developer to make a bright career join Infocampus Software Training Institute .

Author : Infocampus is best institute for the java course in bangalore . It provides java training in lesser fees with the live project. Every weekend mock test and mock interviews are conducted for providing the best core java training . Learn Servlet , Struts framework , String , Collection , Serialization etc in Core & Advanced java classes . Advanced java classes are available on weekend and weekdays.
Complete practical session is available for java/j2ee classes. To get the more knowledge on java course call at : 9738001024 or to book the seat for free demo class enquire at : http://www.infocampus.co.in/java-training-bangalore.html

Total Views: 746Word Count: 878See All articles From Author

Add Comment

Computer Programming Articles

1. Reputation Management In The Digital Age: Protecting And Enhancing Your Law Firm’s Image
Author: jamewilliams

2. What Features Should I Look For In Wordpress Ecommerce Plugins?
Author: Rocket Press

3. Staying Updated With The Latest Gaming News
Author: Next Tech Plus

4. Game Development: Evolving Technologies And New Horizons
Author: Rick John

5. Why Svelte Is The Most In-demand Framework For Web Development?
Author: Why Svelte Is The Most In-Demand Framework For Web

6. Maximizing Ebay Sales With Maropost/neto And Pursuit Info Solutions
Author: rachelvander

7. The Importance Of Software Testing: Ensuring Quality In Development
Author: John Mathew

8. Sadhgurusilveroaks - The Best School In Nellore
Author: Sadhgurusilveroak

9. Website Development Using Kentico – Cloud First Headless Cms
Author: Website Development Using Kentico – Cloud First He

10. Shopify Experts In Melbourne: Elevate Your E-commerce With The Merchant Buddy
Author: themerchantbuddy

11. Web Development 3.0: Shaping The Future Of The Internet
Author: Backend Brains

12. Top College Erp In India Helps Colleges Operate More Efficiently
Author: CONTENT EDITOR FOR SAMPHIRE IT SOLUTIONS PVT LTD

13. "lcc Computer Education: Expert Java Coaching Center"
Author: Khushi Gill

14. Which Institute Is Best For Full Stack Developers In Bhopal?
Author: Shankar Singh

15. Micheal John
Author: micheal

Login To Account
Login Email:
Password:
Forgot Password?
New User?
Sign Up Newsletter
Email Address: