Java 9 introduced a new feature called “private methods in interfaces”, which allows developers to declare private methods in interface definitions. Before Java 9, interfaces only supported public and abstract methods. However, this new feature provides more flexibility and functionality to interfaces in Java programming. In this article, we will explore the concept of private … Read More “Java | Private methods in interfaces” »
Tag: Java 9
Java
Java
Java 9 introduced a new feature called “Factory methods for collections”, which provides a simpler and more concise way of creating immutable collections. In this article, we’ll explore this new feature and provide some examples and code snippets to help you get started. Before we dive into the details, let’s briefly discuss the concept of … Read More “Java | Factory methods for collections” »
Java
Java 9 introduced the module system to help solve issues with the classpath and JAR hell. In this article, we’ll take a closer look at the module system and how it works. Modules are a way to organize Java code into groups of related classes and resources. A module is a self-contained unit of code … Read More “Java | Module system” »