What is optional and why it is there? | Java8
Have you ever been tired of putting null checks all over the code to avoid any unnecessary NullPointerExceptions. Java 8 has introduced a new class Optional in java.util package. It is used to represent a value is present or absent. The main advantage of this new construct is that No more too many null checks and NullPointerException. It avoids […]
Sapient Global Markets Interview Questions – Set 2
I applied for Junior Associate position (Java Developer) at Sapient Bangalore location. This was my second technical round with Sapient Global Markets, Bangalore. It was Skype interview. You can also read my article for the interview experience of first technical round at Sapient. From my interview experience with Sapient, I can say that their interviewers have some […]
java.util.stream – Stream APIs basics | Java8
In this article we will walk through basic overview of java.util.stream package. Package java.util.stream contains classes that support functional type of operations on streams of elements, such as map-reduce transformation, filtering etc. By the end of the article we will be able to answer following questions: 1. What is streams? 2. How it can be created? […]
Java8 Features
Java 8 is released in March 2014. In this article, we will look into some of the java 8 features with examples. You can download JDK 1.8 from here based on your OS Platform requirements. We are going to cover below important features of the Java8: Lambda Expressions Functional Interfaces Stream Collection Type Interface Default […]