Tag: Object Oriented Programming
- Differences between orTimeout() and completeOnTimeOut() methods in Java 9?In this article, we will learn about the differences between the orTimeout() and the completeOnTimeout() methods in Java. Both the orTimeout() and completeOnTimeout() methods are defined in the CompletableFuture class, and these two methods were intr
- What are the benefits of immutable collections in Java 9?In Java 9, several factory methods have added to Collections API. By using these factory methods, we can create unmodifiable list, set and map collection objects to reduce the n
- Importance of iterate() method of Stream API in Java 9?\\nIn Java 8, the iterate() method of Stream API takes the seed and the unary operator as arguments. As stream becomes infinite, it makes the
- What are the advantages of private methods in an interface in Java 9?In Java 9, an interface can also have private methods. Apart from static and default methods in Java 8, this is another significant change as it allows the
- What is the use of the Tab key in JShell in Java 9?JShell can also provide an auto-completion feature when we partially type the name of an existing class, variable, or method by pressing t
- What are the new methods added to Process API in Java 9?In this article, we will learn about,%?the new methods added to the Process API in Java 9. First, we will know about what is process API, and the methods in Process API in detail. What is Process API? In Java, the Process API, we can perform any operat