Blog Archives

01: 19 Java 8 Functional Programming FAQs

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 …



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 …



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 …



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 …



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 …



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 …



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 …



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



Java 8 String streams and finding the first non repeated character with functional programming

Q1.Find the first non repeated character in a given string input using Java 8 or later? A1.Extends Find the first non repeated character in a given string input with Java 8 …



Java 8: What is currying? Does Java 8 support currying?

Currying (named after Haskell Curry) is the fact of evaluating function arguments one by one, producing a new function with one argument less on each step. Java 8 still does not …



300+ Java Interview FAQs

800+ Java Interview Q&As

Top