In this section we will cover the basics of Java with clear and simple explanation. Here in this section we have covered concepts in the form of questions. Moreover, I am sure that these concepts will be beneficial to new developers & to those who are preparing for interviews. We will call this section 'Java Core Tutorials'. They are like must to know concepts for every Java professional. In addition, we have a separate section for Java Interview Questions. Let's start learning basics of Core Java in our topic 'Java Core Tutorial'. Q: What is the history of Java ? How popular it is ? In the early nineties, Java was created by a team led by James Gosling for Sun Micro-systems
Core Java
Java Design Patterns
If you want to learn 'Java Design Patterns' in less time without missing any concept, you are at the right place. Moreover, if you want to appear in a Java interview, go through this article once. Additionally, If you want to have a quick revision of your concepts on Java Design Patterns which you had learnt a log time before, then also you are at the right place. However, if you are looking for one liner definition of each Design Pattern to memorize them, then also you are at the right place. Then, visit the last section of this article (Design Pattern's Cheat Sheet). In this article, we will discuss about all GoF (Gang of Four) design patterns. The 23 design
Stream API in Java 8
Data Processing is the dominant part of a Software Application. As a developer, we can't think of developing an application without data processing logics. However, almost every Java Application uses Collections API to store and process data. Using Collections API, it is not so easy to write the codes for even some common data processing operations such as filtering, sorting, matching, finding, mapping etc. That's why Java API designers have come up with Stream API in Java 8 to implement more complex data processing logics with the least number of lines of code. So, in this article, we are going to learn Stream API in Java 8 and how to work with the complex data processing operations in an easy
Java Coding Best Practices and Standards
As a developer, while doing coding task, there is a probability that we make some mistakes accidentally. Sometimes, the compiler catches the mistakes and warns us to correct it. But when we make a mistake and compiler didn't catch it, we may face an issue after running the program. That's why we should have some elementary knowledge of Java Coding Best Practices and Standards in order to avoid them. These Java Coding Best Practices and Standards are not only useful in writing a successful program, but also in improving the performance of the application in the long term as a whole. Based on the Code Review, we are going to mention a synopsis of the common mistakes that a Programmer commits.
Java 8 Features
Java 8 was released by Oracle after 2 Years 7 Months 18 Days of release of java 7 on March 18th, 2014. However, after Java 1.5 version, Java 8 is the next major release version. Before Java 8, Sun community focused majorly on objects, but in Java 8 version, Oracle community has focused more on functional programming to bring its benefits to the Java language. However, it doesn’t mean that Java is a functional oriented programming language, but we should grasp it in a way that we can apply functional aspects of programming as well now with Java 8. It is a part of Java 8, as an object oriented programming. Here, we will discuss new Java 8 Features one by
Behavioral Design Patterns In Java
In continuation of the second part of Design Patterns in Java, we will discuss about Behavioral Design Patterns in Java in this article. We have already covered Creational Design Patterns in Java, and Structural Design Pattern in the first & the second part respectively. The Behavioral Design Patterns deal with better interaction between objects and to provide loose coupling and flexible design. Moreover, they use various techniques to make communication between objects easier. We will discuss eleven design patterns in total in this article that come under the category of Behavioral Design Pattern. Let’s start discussing our topic ‘Behavioral Design Patterns In Java’. What are Behavioral Design Patterns in Java? Behavioral Design Patterns offer solution for the better interaction between objects and how
Structural Design Patterns In Java
In continuation of the first part of Design Patterns in Java, we will discuss about Structural Design Patterns In Java in this article. We have already covered Creational Design Patterns in Java in the first part as mentioned. The Structural Design Patterns deal with different ways to create a class structure. Moreover, they use Inheritance and Composition techniques to create larger objects from small objects. We will discuss seven design patterns in total in this article that come under the category of Structural Design Pattern. Let's start discussing our topic 'Structural Design Patterns In Java'. What are Structural Design Patterns in Java? Structural patterns provide different ways to create a class structure, for example, using inheritance and composition to create a large
Creational Design Patterns In Java
As the first part of Design Patterns in Java, we will discuss about Creational Design Patterns in Java in this article. We have already covered the Introduction of Design Patterns in Java in a separate article. In the introductory part, we have already discussed about What, Why & advantages of Design Patterns. We will discuss five design patterns in total in this article that come under the category of Creational Design Patterns. Creational design patterns deal with providing solutions to instantiate an object in the best possible way for specific situations. Let's start with our topic 'Creational Design Patterns in Java' and other concepts related to it. What are Creational Design Patterns in Java? Creational design patterns provide solution to instantiate an object
SOLID Principles : The Dependency Inversion Principle
Almost everywhere when we talk about delivery of a product, the first step comes in mind is it's design. The more focus we put into the design, the better the product will look. Every design has some design principles that need to be followed while designing a product. Hence, design principles have a crucial role in any product delivery. Design Principles help teams with decision making. In this article, We will discuss about 'SOLID Principles : The Dependency Inversion Principle'. A few simple principles or valuable questions can guide our team towards taking relevant decisions. SOLID Principles are the set of five principles used to design a software. In fact, the word 'SOLID' is the acronym for the set of five
Java Coding Interview Questions
In this article, We will discuss about Java Coding Interview Questions and their Answers. Moreover, we will try to provide multiple approaches to solve a coding problem. Additionally, related concepts to a particular coding problem will also be discussed. Our primary focus of this article is to provide all kinds of Java Coding Interview Questions with their Answers. However, for theoretical questions & answers of Java Interview, kindly visit our another article 'Java Interview Questions'. How to iterate and modify value in Java 8 in a Map? Here is the program to update & iterate a Map in Java 8. public class MapUpdateTest { public static void main(String[] args) { Map<String,String> map = new