Blog Archives

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

Read more ›

Posted in FP, Java 8

10: ♦ ExecutorService Vs Fork/Join & Future Vs CompletableFuture Interview Q&A

Q1. What is the difference between “ExecutorService” and “Fork/Join Framework“? A1. The Fork/Join framework uses a special kind of thread pool known as the ForkJoinPool, which is a specialized implementation of ExecutorService implementing the 1) work-stealing algorithm, in which the idle workers steal the work from those workers who are

Read more ›

Posted in Java 8, Multithreading, Reactive Programming

01: ♦ 19 Java 8 Functional Programming (i.e. FP) interview Q&As

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)? A1. In a…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Feel free to evaluate the quality of the contents Free FAQs | HomeTry Log In | Register
Posted in FAQs OOP & FP, FP, Java 8, member-paid

06: ♥ Understanding TimeZones with Java 8 examples

What is UTC? which stands for Coordinated Universal Time. The diagram below shows the standard time offsets of different countries. Some places observe daylight saving time (DST) during their respective summer periods. For example, Los Angeles (i.e LA) UTC – 8.0 hours (without DST) & UTC – 7.0 hours (with

Read more ›

Posted in Data types, Java 8

04: Convert Lists to Maps and Maps to Lists with Java 8 power

Why convert from a list to a map? Maps allow you to store and access data by a “KEY”. Lists only allow you to access data by either index or by looping through the whole list to find a value that you are interested in. Also, a map can be…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Feel free to evaluate the quality of the contents Free FAQs | HomeTry Log In | Register
Posted in Converting from A to B, Java 8, member-paid

06: ♥ Java 8 way of File reading and functionally processing the data

Output:

#1 double colon notation :: The new double colon (::) operator that Java 8 has to convert a normal method into lambda expression. So, Instead of:

You can do:

#2 Why is stream::iterator used? “lines::iterator” where iterator() is an instance method on “BaseStream<T,Stream<T>>” from which

Read more ›

Posted in IO, Java 8
Tags:

05: ♦ Finding the 2nd highest number in an array

Requirements gathering Does the array allow duplicates? If duplicates are allowed, then do you need to report duplicates? For example, in {2,4, 6, 3, 6, 5}, is 6 or 5 the second highest? Analysis If duplicates are not allowed, sort the array (Arrays.sort(…)) and get the second last element, which…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Feel free to evaluate the quality of the contents Free FAQs | HomeTry Log In | Register
Posted in Can you write code?, Coding, Java 8, member-paid

08: ♦ Write code to add, subtract, multiply, and divide given numbers?

A trivial coding example (i.e. a Calculator) tackled using the following programming paradigms in Java not only to perform well in coding interviews, but also to learn these programming paradigms. Approach 1: Procedural Programming Approaches 2 – 4: Object Oriented Programming Approach 5: Functional Programming (Java 8) Approach 1: Procedural

Read more ›

Posted in Can you write code?, Coding, Java 8, OOP
Page 1 of 3123

Take the road less travelled

Fast-track by empowering yourself to choose from multiple job offers, open more doors and increase your earning potential.

800+ Java Interview Q&As – ♥ Free | ♦ FAQs

open all | close all

Pressed for time? 200+ Quick Prep

open all | close all

16 Java Key Areas to be a top-notch

open all | close all

100+ Java Tutorials – Step by step

open all | close all

100+ Java Coding Exercises

open all | close all

How good are your

open all | close all