Java-Interface-and-Various-Types-of-Interfaces-1-1

Java Interface and Various Types of Interfaces

Hey, Tea lovers! before talking about Java Interface, Have you ever heard the phrase, “Man Of Many Faces”? if not, it means a person can be of everything or anything when it comes to portraying something. It can be one thing and a minute after another without losing its strength. Java’s interface fits perfectly with this title. It is an integral part of java and has become so powerful over the years, that it shifted the way a Java programmer thinks. It has added various ways of doing things in Java. Depending on the number of methods only, an interface’s definition as well as the object-creating process changes. ...

May 14, 2021 Â· 5 min Â· Imran Shaikh
Functional Interfaces To Become More Functional in Java

Functional Interfaces in Java

Hey! tea lovers. This post is about Java’s functional interfaces. We will talk about the basic ones briefly. These functional interfaces are used by Stream API heavily, so knowing them will give you a huge advantage. Not just streams you can use it anywhere. Prerequisites for Functional Interfaces Not much, Just make sure the concept of functional interfaces and lambdas are clear. You can find the code on GitHub here or the full project here. And yes fill your cup of tea to sip and learn with me. ...

May 9, 2020 Â· 6 min Â· Imran Shaikh
Power of Multi-Threading

Techniques to unlock the Power of Multi-Threading in Java

Hey, tea lovers! Today, we are going to tackle the topic of multithreading in Java. Have you ever heard the phrase “when doing one thing, prepare for another and execute a third”? This is the essence of multi-threading, where we perform multiple tasks concurrently. With Java, you can achieve this by creating multiple threads within your program. When we talk about concurrency in Java we inherently talk about multi-threading. Multithreading refers to running multiple threads concurrently. Thread is just a lightweight sub-process. You can think of it as a mini process. Let us look at it by reading this post in your one thread and concurrently sipping that hot tea in another. ...

January 9, 2020 Â· 8 min Â· Imran Shaikh