What You'll Learn

  • Java Inner Class Concepts
  • Java Functional Programming including : Lambda
  • Method Reference and Built-in Interfaces
  • Stream API

Requirements

  • Core Java Knowledge
  • Java Inner classes and Functional Programming Knowledge
  • A Computer / Laptop / Mobile / Tablet

Description

Learning is incomplete without challenging questions to assess the knowledge gained. There are courses and books available on Functional Programming & Stream API, which cover these topics in detail, but simply watching the video lectures or finishing the book will not give enough confidence unless the knowledge is validated.

Practice tests in this course will not only help you to assess your current knowledge of these topics but will also help you to revise the topics quickly. Questions are designed to challenge your understanding of the topics. Detailed explanations for all the questions are also provided for your reference. 

Functional programming is not a new concept. Lambdas were implemented in other languages much before they were introduced in Java.

Before JDK 8, anonymous inner classes with a single method was the closest Java came to functional programming but with lots of boilerplate code. If anyone wants to really appreciate the implementation of lambda expressions in java, it is necessary to know the anonymous inner classes in depth and to understand anonymous inner class you need to have knowledge of Regular and method-local inner classes. 

You may face lots of questions in interviews or written tests where you are asked to convert anonymous inner class syntax to lambda expression and vice versa. Therefore, I decided to start with questions on inner classes and then go on with Lambda expression, method references, built-in functional interfaces and finally end this test series with questions on Stream API. 


1st practice test covers questions on:

  • Regular Inner class:


    1.  Regular inner class and its syntax 

    2.  Usage of this reference with Regular inner classes 

    3.  Shadowing of Outer class variable by Inner class variable 

    4.  Allowed access and non-access modifiers for Regular inner class 

    5.  Accessing Regular inner class's name from within outer class and outside of outer class 

    6.  Instantiating Regular inner class 

    7.  Allowed and not allowed components inside a Regular inner class


  • Method-local inner class:


    1.  Method-local inner class and its syntax 

    2.  Modifiers used with method local inner classes 

    3.  Relationship between method local inner class and top-level class 

    4.  Where to create the instance of method local inner class? 

    5.  Usage of local variables with method-local inner class 


  • Anonymous inner class:


    1.  Syntax of anonymous inner class 

    2.  Inheritance and Polymorphism with anonymous inner class 

    3.  Defining non-overriding methods in anonymous inner classes 

    4.  Instance of anonymous inner class can be assigned to static variable, instance variable, local variable, method parameter and return value 

    5.  Anonymous inner class extending from concrete class or abstract class or implementing an interface 

    6.  Constructors and anonymous inner class

  • Static nested class:


    1.  Syntax of static nested class 

    2.  Accessing instance and static members of static nested class 

    3.  Allowed access modifiers with static nested class 

    4.  Nested interface defined within a class 

    5. Nested interface and nested class defined within an interface


2nd practice test will test, how well you know lambda expressions.

2nd Practice test covers questions on:

  • Lambda expression and its syntax

  • Arrow (->) operator

  • Simplified Lambda expression syntax

  • @FunctionalInterface annotation

  • Requirements for an interface to be a Functional interface

  • Convert anonymous inner class code to Lambda expression

  • this within anonymous inner class vs this within lambda expression

  • Usage of local variables with Lambda expression


Once you are comfortable with lambda expressions, then you can take 3rd practice test to assess your method references concepts. 

3rd Practice test covers questions on:

  • Method reference and its syntax

  • Double colon (::) operator

  • 4 types of method references:

  •  Method Reference to Constructor

  •  Method Reference to Static Method

  •  Method reference to an Instance Method of a Particular Object

  •  Method Reference to an Instance Method of an Arbitrary Object of a Particular Type 

  • Possibility of ambiguous call when a method reference syntax refers to both static and instance method of the class


Java 8 has provided various built-in functional interfaces, out of which 4 are most important and rest are dependent upon these 4 interfaces. 

4th practice test covers questions on:

  • Supplier interface

  • Consumer interface and its default method: andThen

  • Predicate interface and its default methods: and, or, negate

  • Function interface and its default methods: compose, andThen 

  • Comparator interface, its static method: comparing and default methods: thenComparing, reversed


Stream API made the life of Java developers a lot easier.

5th practice test covers questions on:

  • Generic Stream interface and its primitive counterparts

  • Creating sequential streams

  • Important methods of Stream interface

  • Generic Optional class and its primitive counterparts

  • Convert arrays and collections to streams

  • Sort a collection using Stream API


After Stream support in Collection API, processing collection elements became a lot easier. Parallel streams can run tasks in parallel without writing cumbersome logic.

6th practice test covers questions on:

  • Method stream() of Collection interface

  • Save results to a collection using the collect method and group/partition data using the Collectors class

  • forEach(Consumer) method of Iterator<T> interface

  • Convert arrays and collections to streams

  • stream() and parallelStream() methods of Collection interface

  • parallel() and sequential() method of Stream interface

  • Behavior of various methods such as forEach, reduce, forEachOrdered, findFirst with parallel streams

NOTE: All the codes in this practice test are tested against JDK 8.


So, grab a cup of coffee or your favourite drink and test your Java Functional Programming skills.

Features of Practice Tests:

  • You can pause the test at any time and resume later.

  • You can retake the test as many times as you would like.

  • The progress bar at the top of the screen will show your progress as well as the time remaining in the test. If you run out of time, don’t worry; you will still be able to finish the test.

  • You can skip a question to come back to at the end of the exam.

  • You can also use “Mark for Review” to come back to questions you are unsure about before you submit your test.

  • If you want to finish the test and see your results immediately, press the stop button.


Copyright 2025 Udayan Khattry

All rights reserved. No part of this course may be reproduced in any form or by any electronic or mechanical means, including information storage and retrieval systems, without permission in writing from the author.

Who this course is for:

  • Anyone who wants to assess their Java Functional Programming skills including : Lambda
  • Method Reference
  • Built-in Functional interfaces & Stream API
  • Anyone who wants to assess their Java Inner classes skills
Test Java Functional Programming (Lambda & Stream) skills

Course Includes:

  • Price: FREE
  • Enrolled: 565 students
  • Language: English
  • Certificate: Yes
  • Difficulty: Beginner
Coupon verified 12:01 AM (updated every 10 min)

Recommended Courses

MS Word - Microsoft Word Course Beginner to Expert
4.415663
(703 Rating)
FREE
Category
IT & Software, Other IT & Software, Microsoft Word
  • English
  • 49226 Students
MS Word - Microsoft Word Course Beginner to Expert
4.415663
(703 Rating)
FREE

Beginner to Expert Level - Fundamentals, Copy Cut, Paste, Font Design, Typography, Cases, Indent, Alignment, Paragraph

Enrolled
Python Quiz - Test your Python knowledge in 1 Day!
4.142857
(7 Rating)
FREE
Category
Development, Programming Languages, Python
  • English
  • 378 Students
Python Quiz - Test your Python knowledge in 1 Day!
4.142857
(7 Rating)
FREE

11th hour preparation for Python interviews, exams and tests with multiple choice questions

Enrolled
Adobe Illustrator CC 2020 MasterClass
4.54
(1532 Rating)
FREE
Category
Design, Graphic Design & Illustration, Graphic Design
  • English
  • 132317 Students
Adobe Illustrator CC 2020 MasterClass
4.54
(1532 Rating)
FREE

For All Users

Enrolled
Complete Course in Adobe Photoshop CC
4.24
(932 Rating)
FREE
Category
Design, Graphic Design & Illustration, Graphic Design
  • English
  • 94805 Students
Complete Course in Adobe Photoshop CC
4.24
(932 Rating)
FREE

A Masterclass

Enrolled
Adobe Photoshop CC For Absolute Beginner to Advanced
4.53
(661 Rating)
FREE

Retouch, Color Adjustment, Layer, Text Style, Shadow, Blur, Advance Content Aware, Retouch

Enrolled
HTML and CSS for Beginners From Basic to Advance
4.435484
(884 Rating)
FREE
Category
Development, Web Development, HTML
  • English
  • 37265 Students
HTML and CSS for Beginners From Basic to Advance
4.435484
(884 Rating)
FREE

HTML5, CSS3, Elements, Attributes, Headings, Paragraphs, Styles, Responsive, Iframes, Images, Colors, Box Model, Class

Enrolled
Essential Lightroom Course for Beginner to Advanced
4.19
(130 Rating)
FREE

Learn Photo Editing by Adobe Lightroom

Enrolled
Unlock Excel's Power: Essential MS Excel Skills for Success
4.358108
(390 Rating)
FREE

Essential Excel for Data Analysis: Cleaning, Manipulating & Visualizing Data

Enrolled
Figma Essential for User Interface and User Experience UI UX
4.3385825
(736 Rating)
FREE
Category
Design, User Experience Design, Figma
  • English
  • 38370 Students
Figma Essential for User Interface and User Experience UI UX
4.3385825
(736 Rating)
FREE

Mastering Your UI/UX Design Skills with Figma's Essential Features

Enrolled

Previous Courses

Test your Core Java skills
4.36
(361 Rating)
FREE
Category
Development, Programming Languages, Java
  • English
  • 18980 Students
Test your Core Java skills
4.36
(361 Rating)
FREE

139 multiple choice questions to test your Core Java skills

Enrolled
Java For Beginners - 1st step towards becoming a Java Guru!
4.42
(566 Rating)
FREE

Become a Core Java Expert easily and in step-by-step manner

Enrolled
AI Agents For Blockchain On Polygon - The Complete Course
0
(0 Rating)
FREE

Build an intelligent Web3 AI Agent - OpenAI, Telegram, and Safe Wallets on Polygon – with official Polygon Guidance

Enrolled
The Portfolio Playbook: Build Winning Investment Portfolios
0
(0 Rating)
FREE

Stock Market & Economics Basics. Fundamental Stats. Stock Trading & Portfolio Building Strategies. Technical Analysis.

Enrolled
REST APIs Development With Java - API CRUD Operation
4.3965516
(29 Rating)
FREE
Category
IT & Software, IT Certifications, REST API
  • Hindi
  • 4959 Students
REST APIs Development With Java - API CRUD Operation
4.3965516
(29 Rating)
FREE

Best course for fresher to understand basic concept and upgrade there skills : REST APIs Development in Java. Enroll now

Enrolled
Mastering Data Magic : Power BI + Tableau + SQL , Analytics
4.3157897
(331 Rating)
FREE

Data Analytics with Power BI , Tableau and SQL

Enrolled
Microsoft Excel Training - Beginner to Expert Level in Hindi
4.42
(169 Rating)
FREE

Master Microsoft Excel, including logical statements, advanced functions, data formatting, VBA macros, and more.

Enrolled
Computer Networks Fundamentals
4.5634327
(1474 Rating)
FREE
Category
IT & Software, Network & Security, Computer Network
  • English
  • 74387 Students
Computer Networks Fundamentals
4.5634327
(1474 Rating)
FREE

Use this course to cover your Computer Networking basics!

Enrolled
Practical Cisco Networking Labs in Cisco Packet Tracer
4.628788
(2689 Rating)
FREE
Category
IT & Software, Network & Security, Cisco
  • English
  • 209002 Students
Practical Cisco Networking Labs in Cisco Packet Tracer
4.628788
(2689 Rating)
FREE

Networking concepts explained in a simple way, with many engaging exercises!

Enrolled

Total Number of 100% Off coupon added

Till Date We have added Total 1901 Free Coupon. Total Live Coupon: 1901

Confused which course 100% Off coupon is live? Click Here

For More Updates Join Our Telegram Channel.