Java 8

  1. What java 8? What intention of java 8.
  2. Interfaces
    1. Default Method in Java Interface
    2. Static Methods in Java Interfaces
    3. Other changes for interface in java 8
  3. Lambda Expressions
    1. Basics of Lambda Expressions
    2. Questions on Lamda Expressions
    3. Daily Uses of Lambda Expression
    4. Functional Interfaces and its types
      1. Java 8 Predicate Interfaces
      2. Java 8 Supplier Interfaces
      3. Java 8 Consumer Interfaces
      4. Java 8 Functions Interfaces
      5. Java 8 UnitaryOperator Interfaces
      6. Java 8 BinaryOperator Interfaces
    5. Methods Reference and Constructor Reference
    6. Exception handling using wrapper lamda
    7. Calculating execution time of program in java 8
  4. New Patterns in Java 8
    1. Null check using Objects.requiredNonNull
    2. Equals check using predicate (Predicate.isEqual(target))
    3. Predicate instead of if else in java (Predicate and())
    4. Iterating in one line using forEach
    5. Using Lambda instead of anonymous inner class
    6. Using Lambda as wrapper (Example : Exception handling)
    7. Chaining of consumers
    8. Explore all the methods of Supplier, Consumer, Predicate and Functions
    9. Explore Hacks in java 8
  5. Stream API
  6. Java Streams (Mock Data)
    1. Intermediate Methods
      1. Filter method of the Stream class
      2. map method of Stream class
      3. flatMap method of Stream class
      4. sorted method of Stream class
      5. distinct method of Stream class
      6. limit method of Stream class
      7. generate method of Stream class
      8. peek method of Stream class
      9. skip method of Stream class
      10. range method of IntStream class
    2. Terminal Method
      1. ForEach method of the Stream class
      2. collect method of the Stream class
      3. reduce method of Stream class (sum/count/avergae is pending)
      4. count method of Stream class
      5. match method of Stream class (allMatch,anyMatch,noneMatch)
      6. min and max method of Stream class
      7. toArray method of Stream class
    3. Shortcircuit method of Stream class
      1. findAny and findFirst method of the Stream class
      2. anyMatch()
    4. Other methods still to be determined
      1. of method of Stream class
      2. Stream Vs Parallel Stream
      3. Filtering and Transformation
      4. Grouping data with streams like SQL
      5. Joining Strings
  7. Optional class
  8. Collectors class
    1. To List
    2. To Set
    3. To Map
    4. To Collection
    5. joining method of collectors class
    6. summarize & stat
    7. averagingInt, summingInt and summarizingInt method of collectors class
    8. groupingBy , partitioningBy methods of Collectors
    9. collectingAndThen method of Collectors
  9. Date and Time API
  10. Steam + Map object

Questions :

  • Why are stream immutable
  • Stream Vs Collection
  • Different ways to create stream
  • How to convert Stream to Array using toArray method of Java 8 Stream?
  • How to prove Java 8 Stream is lazy?
  • What will happen if we call terminal operation more than one time? 
  • Base Interfaces of java 8 Stream
  • Parallel vs Sequential Stream
  • Whether we can reuse the Stream or not? 
  • How Parallel Stream works?
  • What are the core stream operations of Java 8 Stream?
  • What are the Key-points of Java 8 Stream?