Difference between Abstract Class vs Interface Java Example

In this post let’s discuss about Abstract class v/s interface in java along with an example. Abstract Class and Interface are core part of java programming language and its a frequently asked java interview question.   Above diagram illustrate the basic meaning of Abstract class v/s interface in java, let’s understand technical differences one by one with an example. Introduction Java Abstract […]

» Read more

Java 8 Lambda Expression Features Tutorial Examples

1. Introduction On Java lambda expression A Lambda expression is a new and most popular feature of Java, which was included in Java SE 8. It introduces new concept called “functional programming” in Java, which is a completely object-oriented and imperative programming language. 1.1 What are lambda expression in java? A lambda expression is an anonymous(nameless) function which don’t have any […]

» Read more

Deadlock Java Multi-threading

Let’s study about Deadlock Java Multi-threading. What is Deadlock in Multithreading? Deadlock in multithreading is a situation where two or more threads are waiting for each other, blocked forever. Example Let’s under in a simple manner, assume there are two threads (as shown in the above diagram) Thread 1 and Thread 2 and two objects obj 1 and obj 2. Thread 1 is already holds by an obj 1 and for further processing […]

» Read more

Fork Join Java Multithreading

Let’s study very interesting topic Fork Join Java Multithreading to increases the performance in java programs. Introduction Objective: Fork and join in java Multithreading mainly designed to simplify parallel programming for Java programmers. Firstly will understand the meaning of Fork and join in java Multithreading. Fork Fork is a process in which larger task (Task 1) split into sub-task like task 1.1 […]

» Read more
1 2 3 5