Java 9 JShell

Java 9 Jshell Example

Table of ContentsRequirement jshell :Jshell Features1. JShell Statement2.  Jshell Class declaration3. Jshell method declaration:JShell does not support following things: Requirement jshell : Immediate feedback is important when learning a programming language. The number…

java 9 immutable create list

Java 9 create immutable List

Table of ContentsDetails Explanation of java.util.List enhancement in Java 9Example: It will not support following things:1.List.of method return immutable List object so modification is not possible2. List.Of() method does not allowed null…

java 9 immutable create map

Java 9 create immutable Map

Details Explanation of java.util.Map Collection enhancement in Java 9 The Map.of() and Map.ofEntries() static factory methods provide a convenient way to create immutable maps. The Map instances created by these methods…

java 9 immutable create set

Java 9 create immutable Set

Table of ContentsDetails Explanation of java.util.Set enhancement in Java 9Example: It will not support following things:Set.of method return immutable Set object so modification is not possibleSet.Of() method does not allowed duplicate…