Pedro Lopes
open-menu closeme
Home
About
github twitter linkedin rss
  • Concurrent Modification Exception in Java and How to Avoid it

    calendar Oct 20, 2022 · 3 min read · java thread safety  ·
    Share on: twitter facebook linkedin copy
    Concurrent Modification Exception in Java and How to Avoid it

    This article shows how the Concurrent Modification Exception appears when we update an iterator while iterating a regular collection and how to avoid that exception using concurrent collections.


    Read More
  • Deadlock, Livelock, and Starvation in Java

    calendar Oct 15, 2022 · 7 min read · java thread safety  ·
    Share on: twitter facebook linkedin copy
    Deadlock, Livelock, and Starvation in Java

    In this article, we'll examine three thread problems associated with the liveness of a multi-thread application. The most common ones are deadlocks, livelocks, and starvation.


    Read More
  • String Concatenation in Java

    calendar Oct 4, 2022 · 4 min read · java memory management  ·
    Share on: twitter facebook linkedin copy
    String Concatenation in Java

    This post shows how to concatenate String using trivial methods like the plus operator and the concat method. Here, we'll look at some problems associated with those two ways and how to avoid them using the StringBuilder and StringBuffer classes.


    Read More
  • How to Use the Thread and Runnable Classes

    calendar Sep 28, 2022 · 4 min read · java thread safety  ·
    Share on: twitter facebook linkedin copy
    How to Use the Thread and Runnable Classes

    Learn how to create a thread in Java using the Runnable and Thread classes.


    Read More
  • What is the toString Method in Java

    calendar Sep 26, 2022 · 5 min read · java java string  ·
    Share on: twitter facebook linkedin copy
    What is the toString Method in Java

    This article explains the toString method, its purpose, and how to use it effectively in Java classes.


    Read More
  • A Complete Guide to Java Nested Classes

    calendar Sep 13, 2022 · 8 min read · java oop  ·
    Share on: twitter facebook linkedin copy
    A Complete Guide to Java Nested Classes

    In this article, you'll learn what a nested class is, its benefits and drawbacks, and how they can appear in Java applications.


    Read More
    • ««
    • «
    • 1
    • 2
    • 3
    • 4
    • 5
    • »
    • »»

Pedro Lopes

Engineer, Technologist, Writer, Teacher, and Perpetual Student.
Read More

Featured Posts

  • What are Records in Java 14
  • Deadlock, Livelock, and Starvation in Java

Recent Posts

  • ZonedDateTime in Java: Convert Between Timezones and Handle Daylight-Saving Time Automatically
  • Differences Between anyMatch() vs. allMatch() vs. noneMatch() in Java
  • Java 8 Stream findFirst vs. findAny: Perfomance and Functional Differences
  • Type Erasure and Heap Pollution in Java
  • Introduction to Generics in Java
  • What are Records in Java 14
  • Deadlock, Livelock, and Starvation in Java

Series

CONCURRENCY 3 STRING 3 CLASS-DESIGN 2 COLLECTIONS 2 DATETIME 2 GENERICS 2 STREAMS 2 DESIGN-PATTERNS 1 EXCEPTIONS 1 SPRING-CORE 1

Tags

JAVA 22 OOP 5 THREAD-SAFETY 4 MEMORY-MANAGEMENT 3 JAVA-GENERICS 2 JAVA-STREAM 2 JAVA-STRING 2 OPERATORS 2 SEARCH 2 DATE 1 DATE-TIME 1 HEAP-POLLUTION 1 JAVA-14 1 JAVA-TIME-API 1
All Tags
DATE1 DATE-TIME1 HEAP-POLLUTION1 JAVA22 JAVA-141 JAVA-GENERICS2 JAVA-STREAM2 JAVA-STRING2 JAVA-TIME-API1 JUNIT1 MEMORY-MANAGEMENT3 OOP5 OPERATORS2 SEARCH2 SINGLETON1 SOFTWARE-ARCHITECTURE1 SORTING1 SPRING1 SYSTEM-DESIGN1 TESTING1 THREAD-SAFETY4
[A~Z][0~9]
Pedro Lopes

Copyright 2022-  PEDRO LOPES. All Rights Reserved

to-top