Category: Java
Total: 382 Posts
Posts of Category: Java
  1. Math.sqrt - Square Root in Java

    .lazyload-placeholder { display: none; } Introduction Calculating the square root of a number is one of the common operations we do in computer science. This simple mathematical function finds its use in all ar...Learn More
    Java
  2. Guide to Interfaces in Java

    .lazyload-placeholder { display: none; } Introduction Interfaces in Java are one of the basic concepts of object-oriented programming that are used quite often alongside classes and abstract classes. An interfa...Learn More
    Java
  3. Spring Boot: Guide to RestTemplate

    Introduction In this guide, we'll be taking a look at one of the most frequently used and well-known template in the Spring Ecosystem - known as RestTemplate, and how to use RestTemplate to send HTTP requests, ...Learn More
    JavaSpringSpring Bootspring security
  4. Java 8 Streams: Definitive Guide to Parallel Streaming with parallel()

    Parallel Streams in Java 8 Today, the Java Streams API is in extensive use, making Java more functional than ever. Thus, models like MapReduce have emerged for easier stream handling. Although these models mad...Learn More
    JavaStreamstreams
  5. Java 8 Streams: Definitive Guide to findFirst() and findAny()

    Introduction The findFirst() and findAny() methods are terminal operations (terminate and return results) of the Stream API. Yet, there is something special about them - they not only terminate a stream, but al...Learn More
    JavaStreamstreams
  6. Java 8 - Difference Between map() and flatMap()

    Introduction While Java is primarily an Object Oriented Language, many concepts of Functional Programming have been incorporated into the language. Functional programming uses functions to create and compose pr...Learn More
    Javastreams
  7. Java 8 Streams - Collect and Reverse Stream into List

    Introduction A stream represents a sequence of elements and supports different kinds of operations that lead to the desired result. The source of a stream is usually a Collection or an Array, from which data is...Learn More
    JavaStreamstreamslist
  8. Guide to Java 8 Collectors: averagingDouble(), averagingLong() and averagingInt()

    Introduction A stream represents a sequence of elements and supports different kinds of operations that lead to the desired result. The source of a stream is usually a Collection or an Array, from which data is...Learn More
    Javastreams
  9. Guide to Java 8 Collectors: groupingByConcurrent()

    Introduction A stream represents a sequence of elements and supports different kinds of operations that lead to the desired result. The source of a stream is usually a Collection or an Array, from which data is...Learn More
    Javastreams
  10. Guide to Java 8 Collectors: counting()

    Introduction A stream represents a sequence of elements and supports different kinds of operations that lead to the desired result. The source of a stream is usually a Collection or an Array, from which data is...Learn More
    Javastreams
  11. Functional Programming in Java 8: Definitive Guide to Predicates

    Introduction The Predicate interface was introduced in Java 8 as a part of the java.util.function package. The release of version 8 marks the point at which Java adopted ample support for functional programming...Learn More
    ProgrammingFunctionJava
  12. Graphs in Java: Minimum Spanning Trees - Prim's Algorithm

    Introduction Graphs are a convenient way to store certain types of data. The concept was ported from mathematics and appropriated for the needs of computer science. Due to the fact that many things can be repre...Learn More
    AlgorithmJavacomputer science