Blog Archives
1 2

01: 19 Java 8 Functional Programming (FP) Interview Q&As

Java 8 Functional Programming Interview questions focusing on FP. Getting a good handle on Java OOP concepts and FP concepts are very important NOT only from writing quality code perspective, but also from job interviews perspective to be able to do well in written tests & technical interviews.

Read more ›

01: Java 8 FP interview Q&As on Function, Supplier, Consumer & Predicate

The java.util.function package provides the below functional interfaces. These are used in lambda functions & saves you time by you not having to create your own. You will often find one of these below serve your requirement. Why Function, Supplier, Consumer & Predicate? We know that Java 8 introduced an...

02: Java 8 Streams, lambdas, intermediate vs terminal ops, and lazy loading with simple examples

A stream is an infinite sequence of consumable elements (i.e a data structure) for the consumption of an operation or iteration. Any Collection<T> can be exposed as a stream. It looks complex, but once you get it, it is very simple. The operations you perform on a stream can either...

03: Java Functional interfaces and Lambda expressions Q&As

The functional interfaces and Lambda expressions are going to make your code concise when coding with Java 8. These are the most awaited features among Java developers. If you understand the following examples, you will know what a lambda expression is & … Read more ›...

04b: 6 Java FP partial functions & currying interview Q&As

Q1. The “java.util.function” package only have “Function<T,R“, which takes an input and returns an output, and “BiFunction<T,U,R>“, which takes two inputs and returns an output. How would you then use a function with 3 or more input arguments? A1. … Read more ›...

05: 9 Java Functional programming examples in wrangling normal & big data

This post extends Transforming your thinking from OOP to FP. In Big-data, functional programming is prevalent when working with data sets. For example, writing a Spark job to work with RDDs (Resilient Distributed Data sets). In Imperative (E.g. OOP, procedural programming, etc) programming you can say where you are assigning...

06: 5 Java FP interview Q&As on category theory & monoids

Q01. What is a category theory from a functional programming language perspective?
A01. The category theory is all about abstracting complexities in computations. OO is good for abstracting over Data, and FP is good for abstracting over behavior.


“f” and “g”

Read more ›

07: 4 Java FP Functors Interview Q&As

Q01. What do you understand by the terms functors, monads, and applicatives ? A01. Functors, Monads, and Applicatives are concepts or patterns that abstract complexities in computations, and are NOT interfaces or classes. You can think of them as container type classes like List<T>, Option<T>, … Read more ›...

08: 4 Java FP Monads interview Q&As with examples

Q01. What is a monad? A01. Monad is a wrapper (or a context) that flattens the result so that it can be further processed by mapping over each element. Everything that’s a monad is a functor with extra operation to flatten the results with “flatMap” … Read more ›...

5 FAQs on transforming your thinking from OOP to FP

Functional Programming (i.e. FP) is prevalent in Big Data (i.e. Spark programming, etc) roles. A must know for Big Data Engineers and Analysts. One needs to get used to the transformation from imperative programming to functional programming. You like it or not, … Read more ›...

1 2

800+ Java Interview Q&As

Java & Big Data Tutorials