Author: Shaurav Ranjan

Executor framework and its usage

Reading Time: 4 minutes The Executor Framework contains a bunch of components that are use to efficiently manage worker threads. The Executor API de-couples the execution of the task from the actual task to execute via Executors. This design is one of the implementations of the Producer-Consumer pattern Executors provide factory methods that is use to create ThreadPools of worker threads. To use the Executor Framework we need to Continue Reading

Threading and Synchronization

Reading Time: 9 minutes In this blog, we will learn about threading and synchronization in java What is a Java Thread ? A thread, in the context of Java, is the path followed when executing a program. All Java programs have at least one thread, known as the main thread, which is created by the Java Virtual Machine (JVM) at the program’s start when the main() method is invoked Continue Reading

Referential Transparency in Java Programming

Reading Time: 4 minutes what is functional programming ? It is a declarative style of programming rather than imperative. The basic objective of this programming is to make code more concise, less complex, more predictable, and easy to test. Functional programming deals with certain key concepts such as pure function immutable, state, assignment-less programming etc. Imperative Vs Declarative Programming In the imperative style of coding, we define what to Continue Reading