1 / 45

Java Collections | Java Collections Framework Explained | Java Tutorial For Beginners | Simplilearn

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

Simplilearn
Download Presentation

Java Collections | Java Collections Framework Explained | Java Tutorial For Beginners | Simplilearn

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 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

  2. 01 What is Java Collection?

  3. Click here to watch the video

  4. What are Java Collections? A Java Collection can be defined as a unified collection of objects

  5. 02 Java Collection Framework

  6. Java Collection Framework A Java Collection Framework is defined as a combined structure that is capable of storing and applying to manipulate data

  7. 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

  8. 03 Java Collection Hierarchy

  9. Java Collection Hierarchy Iterable Collection List Queue Set

  10. Java Collection Hierarchy List ArrayList LinkedList Vector Stack Queue PriorityQueue Deque ArrayDeque Set HashSet LinkedHashSet SortedSet TreeSet

  11. 04 Java Collection Interface

  12. Java Collections Interface Set Interface Set is a Java collection that cannot duplicate elements stored in it

  13. Java Collections Interface List Interface List is a Java collection that can duplicate elements stored in it

  14. 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

  15. Java Collections Interface Dequeue Interface Dequeue is similar to Queue but it can support element insertion and deletion from both the ends

  16. Java Collections Interface Map Interface Maps in Java is a pair. This has key and value. The map cannot store duplicate elements

  17. Java Collections Interface SortedSet Interface Sorted sets maintain mapping in ascending order. They are used for naturally ordered collection

  18. Java Collections Interface SortedMap Interface A map that maintains its mappings in ascending key order. This is the Map analog of SortedSet.

  19. 05 Collection Interface Methods

  20. 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()

  21. 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()

  22. 06 Collection Classes

  23. Java Collection Classes HashSet Class It is basically a HashSet interface combined with HashMap. It can allow null elements

  24. Java Collection Classes TreeSet Class TreeSet is a NavigableSet implementation base on TreeMap. Here, the elements are ordered using comparators

  25. 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

  26. Java Collection Classes One-D A[1] A[2] A[3] A[4] A[0]

  27. 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]

  28. Java Collection Classes Three-D 2D Array-1 2D Array-2 2D Array-3

  29. 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

  30. Java Collection Classes Single Head Element Address Element Address Element Null Tail

  31. Java Collection Classes Double Head Null Element Address Address Element Address Element Null Tail Address

  32. Java Collection Classes Circular Head First Element Address Address Element Address Element First Tail Address

  33. Java Collection Classes HashMap Class HashMap table is based on Map interface. It provides map operations and allows null values as well

  34. 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

  35. 07 Collection API Algorithms

  36. Collection API Algorithms Java Collection API algorithms provide implementations that are commonly used in searching, sorting and other jobs

  37. 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

  38. Collection API Algorithms Shuffling Algorithms Shuffling algorithms are designed to destroy the current arrangements. They are employed on creating randomness in the list

  39. 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

  40. Collection API Algorithms Composition Algorithms Composition has two parts: Frequency: checks the count of an element repeated Disjoint: makes sure no element is repeated

  41. 08 Benefits of Java Collections

  42. Benefits of Java Collections? • Software/Code Reusability • Ease of designing APIs • Simpler to learn and Use new APIs • Increased speed in programming

  43. 01 What is an Exception?

More Related