Code Pumpkin

Category Archives: Core Java

Wrapper Classes | Interview Questions

April 22, 2017
Posted by Abhi Andhariya

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

April 21, 2017
Posted by Dipen Adroja

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

April 20, 2017
Posted by Abhi Andhariya

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 […]

Convenience Factory Methods for Collections | Java9

April 19, 2017
Posted by Abhi Andhariya

In this article, we will see another JDK9 feature Convenience Factory Methods of Collections  to create compact, unmodifiable collection instances with single line of code.  You can download JDK 1.9 from here based on your OS Platform requirements. If you are also interested in learning other features of Java9, you can read our post Java 9 Features   Available Approaches for initializing collections till […]

Java 9 Features

April 17, 2017
Posted by Abhi Andhariya

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

April 17, 2017
Posted by Abhi Andhariya

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

April 5, 2017
Posted by Abhi Andhariya

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 […]

Producer Consumer Design Pattern using wait() and notify()

April 3, 2017
Posted by Abhi Andhariya

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 […]

Next posts
Total Posts : 124
follow us in feedly

Like Us On Facebook