Blog Archives
1 2

01: 19 Java 8 interview Questions – Functional Programming

Java 8 interview questions & answers focusing on Functional Programming. 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.

Q1. Can you explain your understanding of Functional Programming (FP)?…

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…

03: Functional interfaces and Lambda expressions Q&A

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…

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…

05: 7 Java FP (lambda expressions) real life 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 x to x + 5.…

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” are functions, and “A” and “B” are types.…

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…

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…

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, you will be using functional programming in Java, and interviewers are going to quiz you on functional programming.…

Fibonacci number with caching and Java 8 FP

Complimenting Fibonacci number coding – iterative and recursive approach, we can improve performance by caching. If you run this

1 2

800+ Java & Big Data Interview Q&As

200+ Java & Big Data Tutorials