</>
Tutorials

Tag: Object Oriented Programming

  • How to initialize immutable collections in Java 9?
    Java 9 provides factory,%?methods,%?to create immutable,%?lists, sets, and maps. It can be useful to create empty,%?or non-empty collection objects. In Java 8 and earlier versions, we can use collection class utility methods like unmodifiableXXX,%?to create im
  • How can we create an unmodifiable Set in Java 9?
    In this article, we will learn to create an unmodifiable Set in Java 9. We will be learning about Set and,%?unmodifiable Set, and will be learning different ways of creating an unmodifiable Set(Set.of() Method and unmodifiableSet() Method). Set In Java
  • How can we create an unmodifiable List in Java 9?
    A list considered to be unmodifiable if the elements can't be added, removed, or replaced from a list once an unmodifiable instance of a list has created. T
  • What are new methods have added to the Arrays class in Java 9?
    In this article, we will learn about the new methods that have been added to the Arrays class in Java 9. First, we will learn about arrays, and then the new methods added to the equals(), compare(), and mismatch() methods with examples. Arrays Java p
  • How can we create an unmodifiable Map in Java 9?\\n
    In this article, we will learn to create an unmodifiable Map in Java 9. First, we will learn about Map and Unmodifiable Map and after that we will be knowing the different ways through which we can create an unmodifiable map (Map.of method and unmodi
  • When to use the ofNullable() method of Stream in Java 9?\\n
    In this article, we will learn to use the ofNullable() method of Stream in Java 9. We will first go through the Stream class, after that we will learn about the ofNullable() method along with its syntax and real-world use cases. Stream Class Stream w
Page 7 / 1506