Java 8 Map vs flatmap method
Map vs FlatMap: Java 8 stream API provides map() and flatMap() methods. Both these methods are intermediate methods and returns another stream as part of the output. map() method use…
Map vs FlatMap: Java 8 stream API provides map() and flatMap() methods. Both these methods are intermediate methods and returns another stream as part of the output. map() method use…
What is String? String Objects are immutable in nature This one is a very important point for interview perspective. What does it mean when we say String is immutable. Immutability…
Immutable objects are those objects whose states cannot be changed once initialized. Sometimes it is necessary to make an immutable class as per the requirement. For example, All primitive wrapper classes (Integer, Byte, Long,…
Table of Contents: Exception Checked and Unchecked Exception in java Checked Exception UnChecked Exception Difference between checked and unchecked exception in java Try Catch and finally block Try with finally…
Table of Contents: Basic points about @PathVariable and @RequestParam annotations. @PathVariable annotations Example in Spring Boot. @RequestParam example in Spring Boot. Basic points about @PathVariable and @RequestParam annotations. @PathVariable annotation-…
Table of Contents Basic points about the comparable interface. Program to sort on the basis of the name using Comparable. Program to sort on the basis of the id using…
Table of Contents Basic points about Comparator interface. Example of sorting using Comparator in java using anonymous class. Example of sorting using Comparator in java implementing Comparator interface. Example of…
We will cover following points of TreeMap in Java: Basic Points about TreeMap. Different ways to iterate TreeMap in Java. Constructors and methods of TreeMap in Java. Basics of TreeMap…
We will cover following points of LinkedHasMap in Java: Basic Points about LinkedHasMap. Different ways to iterate LinkedHasMap in Java. Constructors and methods of LinkedHasMap in Java. Basics of LinkedHasMap…
We will cover following points of HashMap in Java: Basic Points about HashMap. Different ways to iterate HashMap in Java. Constructors and methods of HashMap in Java. Basics of HashMap…