Tutorialspoint

Leap Year Sale! Use code FEB10 to get an extra 10% off

Functional Programming in Java - Java Lambdas and Streams.

person icon Dr. Seán Kennedy OCA, OCP.

4.1

Functional Programming in Java - Java Lambdas and Streams.

Using code examples to explain lambdas and streams.

updated on icon Updated on Feb, 2024

language icon Language - English

person icon Dr. Seán Kennedy OCA, OCP.

category icon Java,Programming Languages,Development

Lectures -36

Resources -2

Duration -2.5 hours

4.1

price-loader

30-days Money-Back Guarantee

Training 5 or more people ?

Get your team access to 8,500+ top Tutorials Point courses anytime, anywhere.

Course Description

This course is a systematic approach to explaining in both notes format and especially code examples, lambda expressions and streams in Java.  

Topics include:

  • Lambdas:

    • Functional Interfaces

    • Lambdas and their relationship to Functional Interfaces

    • Lambdas in code using a custom Functional Interface

    • Lambdas in code using the pre-defined API Functional Interfaces:

      • Predicate/BiPredicate

      • Supplier

      • Consumer/BiConsumer

      • Function/BiFunction

      • UnaryOperator and BinaryOperator

    • final and "effectively final"

    • Method References:

      • bound

      • unbound

      • static

      • constructor

      • context and it's effect in understanding method references

  • Streams:

    • Pipelines

    • Laziness

    • Creating streams

    • Terminal operations:

      • reduce()

      • collect()

        • Collectors.toMap()

        • Collectors.groupingBy()

        • Collectors.partitioningBy()

    • Intermediate operations:

      • filter(), distinct(), limit()

      • map(), flatMap(), sorted()

    • Primitive streams:

      • Creating

      • API

      • Functional Interfaces

      • Mapping between primitive streams

      • Mapping between primitive streams and Object streams and vice versa

    • Optionals

    • Parallel streams

Goals

What will you learn in this course:

The following topics will be discussed in detail:

  • Lambdas
    • Functional Interfaces and how Lambdas relate to them

    • Lambdas in code using the pre-defined API Functional Interfaces

    • Method References

  • Streams:

    • Pipelines

    • Laziness

    • Creating streams

    • Terminal operations

    • Intermediate operations

    • Primitive streams

    • Optionals

    • Parallel streams

Prerequisites

What are the prerequisites for this course?

Pre-requisites are:

  • an editor/IDE such as Eclipse, Netbeans etc..
  • an intermediate level of Java
Functional Programming in Java - Java Lambdas and Streams.

Curriculum

Check out the detailed breakdown of what’s inside the course

Lambdas (Lambda Expressions)
16 Lectures
  • play icon Introduction 06:42 06:42
  • play icon Lambdas in code (using a custom functional interface) 03:08 03:08
  • play icon Lambdas in code (using Predicate) 05:35 05:35
  • play icon Functional Interfaces from the API - Predicate and BiPredicate 03:14 03:14
  • play icon Functional Interfaces from the API - Supplier 02:08 02:08
  • play icon Functional Interfaces from the API - Consumer and BiConsumer 05:00 05:00
  • play icon Functional Interfaces from the API - Function and BiFunction 02:47 02:47
  • play icon Functional Interfaces from the API - UnaryOperator and BinaryOperator 03:03 03:03
  • play icon Lambdas - final and effectively final 04:15 04:15
  • play icon Method References 02:42 02:42
  • play icon Bound Method References 04:59 04:59
  • play icon Unbound Method References 05:01 05:01
  • play icon Static Method References 02:55 02:55
  • play icon Constructor Method References 03:02 03:02
  • play icon Method References and Context 05:51 05:51
  • play icon Appendix - Code Resources
Streams
20 Lectures
Tutorialspoint

Instructor Details

Dr. Seán Kennedy OCA, OCP.

Dr. Seán Kennedy OCA, OCP.

Oracle Certified (Java) University Lecturer.

I am a lecturer since 2002 and I have taught Java at Masters level (level 9) since 2013. Specifically, I have taught Java Fundamentals in addition to both the Oracle Java Certification Associate (OCA) and Professional (OCP) certification syllabii. This is on behalf of a highly regarded software company. On completion of my training, graduates then face the company's own internal Java Certification exam (similar in style to Oracle's). I have no visibility into the questions they will face. It is a 3 hour long intensive exam. This means that my work is externally validated. The company are delighted with the pass rate (100% since year 1).

I love teaching and believe diagrams/code help greatly. I have a strong attention to detail which lends itself perfectly to the Oracle Java Certification exams. I am delighted that Enthuware (the excellent Java Certification training tool), have, in their explanations, linked to my YouTube channel.


Course Certificate

User your certification to make a career change or to advance in your current career. Salaries are among the highest in the world.

sample Tutorialspoint certificate

Our students work
with the Best

Feedbacks

S

sakshi gupta

very brief explanation of lambda expression and stream.

Related Video Courses

View More

Annual Membership

Become a valued member of Tutorials Point and enjoy unlimited access to our vast library of top-rated Video Courses

Subscribe now
Annual Membership

Online Certifications

Master prominent technologies at full length and become a valued certified professional.

Explore Now
Online Certifications

Talk to us

1800-202-0515