Wrapper Classes | Interview Questions
In this post, we will discuss some of the most asked interview questions on wrapper classes. Java is an object-oriented language and can view everything as an object. A simple file can be treated as an object (with java.io.File), an address of a system can be seen as an object (with java.util.URL) and an image can be treated as an […]
Lambda Expression | Java8
In this article, we will go through the lambda expression which is introduced as a part of Java8. This is one of my favorite feature from the Java8 apart from the Stream. This feature we can see as Java's support to the functional programming language. In simple word we can treat lambda expression as an […]
Private methods in Interface | Java 9
In this article, we will see another JDK9 feature i.e. Private methods in Interface. Everybody knows how humans have evolved from apes, but do you know how did interfaces evolve in Java? Before reading about any Java 9 Features, it would be good if you can think about what are those possible reasons which encouraged Oracle […]
Java 9 Features
Java 9 has been released on 21st Sept, 2017. In this article we will look into some of the most awaiting java 9 features with examples. You can download JDK 1.9 from here based on your OS Platform requirements. Some of the important java 9 features are: JShell: The Java Shell (Read-Eval-Print Loop) Convenience Factory Methods […]
JShell: The Java Shell and REPL | Java9
In this article, we are going to understand one of most discussed feature of Java9 i.e. JShell. It was started as project Kulla and included in Java9 release. You can download JDK 1.9 from here based on your OS Platform requirements. Oracle Corporation is trying to integrate most of Scala Features into Java. They have already integrated some Functional Programming […]
Producer Consumer Design Pattern using BlockingQueue
Producer Consumer Problem is a classical concurrency problem. In fact it is one of the concurrency design pattern. This article is continuation of my post Producer Consumer Design Pattern in which I have explained basic idea, real life example, uses and benefits of Producer Consumer Design Pattern. Producer Consumer Design Patter can be implemented using following two […]
Producer Consumer Design Pattern using wait() and notify()
Producer Consumer Problem is a classical concurrency problem. In fact it is one of the concurrency design pattern. This article is continuation of my post Producer Consumer Design Pattern in which I have explained basic idea, real life example, uses and benefits of Producer Consumer Design Pattern. Producer Consumer Design Patter can either be implemented using following […]