460 likes | 648 Views
This presentation will help you understand the Java Collections hierarchy and all the Java Collection Interfaces, classes, and APIs through real-time examples for a better understanding.<br><br>About Simplilearn Java certification training course:<br>If youu2019re looking to master web application development for virtually any computing platform, this Java Certification Training course is for you. This all-in-one Java training will give you a firm foundation in Java, the most commonly used programming language in software development.<br><br>This advanced Java Certification Training course is designed to guide you through the concepts of Java from introductory techniques to advanced programming skills. The course will provide you with the knowledge of Core Java 8, operators, arrays, loops, methods, and constructors while giving you hands-on experience in JDBC and JUnit framework.<br><br>Java Certification Course Key Features:<br>1. 70 hours of blended training<br>2. Hands-on coding and implementation of two web-based projects<br>3. Includes Hibernate and Spring frameworks<br>4. 35 coding-related exercises on Core Java 8<br>5. Lifetime access to self-paced learning<br>6. Flexibility to choose classes<br><br>Eligibility:<br>Simplilearnu2019s Java Certification Training course is ideal for software developers, web designers, programming enthusiasts, engineering graduates, and students or professionals who wish to become Java developers.<br><br>Pre-requisites:<br>Prior knowledge of Core Java is a prerequisite to taking this advanced Java Certification training course. Our Core Java online self-paced course is available for free to become familiar with the basics of Java programming.<br><br>ud83dudc49Learn more at: https://bit.ly/3b6SCvp
E N D
Agenda What are Java Collections? Java Collection Framework Java Collection Hierarchy Java Collection Interface Collection Interface Methods Java Collection Classes Collection API Algorithms Benefits of Java Collection
01 What is Java Collection?
What are Java Collections? A Java Collection can be defined as a unified collection of objects
02 Java Collection Framework
Java Collection Framework A Java Collection Framework is defined as a combined structure that is capable of storing and applying to manipulate data
Java Collection Framework A Java Collection Framework is defined as a combined structure that is capable of storing and applying to manipulate data Classes API Interface
03 Java Collection Hierarchy
Java Collection Hierarchy Iterable Collection List Queue Set
Java Collection Hierarchy List ArrayList LinkedList Vector Stack Queue PriorityQueue Deque ArrayDeque Set HashSet LinkedHashSet SortedSet TreeSet
04 Java Collection Interface
Java Collections Interface Set Interface Set is a Java collection that cannot duplicate elements stored in it
Java Collections Interface List Interface List is a Java collection that can duplicate elements stored in it
Java Collections Interface Queue Interface Queue is in Java is a collection that is capable to store and apply operations on elements. They apply operations on two forms that is FIFO and LIFO
Java Collections Interface Dequeue Interface Dequeue is similar to Queue but it can support element insertion and deletion from both the ends
Java Collections Interface Map Interface Maps in Java is a pair. This has key and value. The map cannot store duplicate elements
Java Collections Interface SortedSet Interface Sorted sets maintain mapping in ascending order. They are used for naturally ordered collection
Java Collections Interface SortedMap Interface A map that maintains its mappings in ascending key order. This is the Map analog of SortedSet.
05 Collection Interface Methods
Collection Interface Methods Description Method Add objects to collection add() Return true if collection is empty isEmpty() clear() Remove all elements from collection Remove a selected object remove() Find number of elements size() Return sequential elements stream()
Collection Interface Methods Description Method Return elements in array form toArray() Returns hashCode of the elements hashCode() equals(obj x) Compare an element with collection Return an iterator over collection iterator() Return max value in collection max() Returns true if selected element is present contains()
06 Collection Classes
Java Collection Classes HashSet Class It is basically a HashSet interface combined with HashMap. It can allow null elements
Java Collection Classes TreeSet Class TreeSet is a NavigableSet implementation base on TreeMap. Here, the elements are ordered using comparators
Java Collection Classes ArrayList Class ArrayList in java is a resizable array that is an implementation of ListInterface that allows null elements Two-D Three-D One-D
Java Collection Classes One-D A[1] A[2] A[3] A[4] A[0]
Java Collection Classes Two-D A[1][0] A[0][0] A[0][1] A[0][2] A[0][3] A[0][4] A[0][0]
Java Collection Classes Three-D 2D Array-1 2D Array-2 2D Array-3
Java Collection Classes LinkedList Class LinkedList class is an implementation of a list and deque interfaces. This allows null elements as well Double Circular Single
Java Collection Classes Single Head Element Address Element Address Element Null Tail
Java Collection Classes Double Head Null Element Address Address Element Address Element Null Tail Address
Java Collection Classes Circular Head First Element Address Address Element Address Element First Tail Address
Java Collection Classes HashMap Class HashMap table is based on Map interface. It provides map operations and allows null values as well
Java Collection Classes TreeMap Class TreeMap is based NavigableMap implementation. The map is sorted according to the natural ordering of its keys, or by a Comparator provided at map creation time, depending on the constructor used
07 Collection API Algorithms
Collection API Algorithms Java Collection API algorithms provide implementations that are commonly used in searching, sorting and other jobs
Collection API Algorithms Sorting Algorithms Sorting algorithm does the job of ordering the elements in an ascending or descending order based on the algorithm written by the user
Collection API Algorithms Shuffling Algorithms Shuffling algorithms are designed to destroy the current arrangements. They are employed on creating randomness in the list
Collection API Algorithms Searching Algorithms Searching algorithm is employed to search an element in the list/array based on the type of searching mechanism used. Ex: binary
Collection API Algorithms Composition Algorithms Composition has two parts: Frequency: checks the count of an element repeated Disjoint: makes sure no element is repeated
08 Benefits of Java Collections
Benefits of Java Collections? • Software/Code Reusability • Ease of designing APIs • Simpler to learn and Use new APIs • Increased speed in programming
01 What is an Exception?