Pedro Lopes
open-menu closeme
Home
About
linkedin rss
  • ZonedDateTime in Java: Convert Between Timezones and Handle Daylight-Saving Time Automatically

    calendar Apr 6, 2023 · 5 min read · java time  ·
    Share on: twitter facebook linkedin copy
    ZonedDateTime in Java: Convert Between Timezones and Handle Daylight-Saving Time Automatically

    This article presents the ZonedDateTime class in Java to store date-times with timezone. Here, I suggest ways to use it, use cases, and how it differs from the LocalDateTime class.


    Read More
  • Type Erasure and Heap Pollution in Java

    calendar Feb 21, 2023 · 5 min read · java generic  ·
    Share on: twitter facebook linkedin copy
    Type Erasure and Heap Pollution in Java

    In this article, we'll look at the concept of type erasure in Java for classes and methods and what heap pollution is.


    Read More
  • Introduction to Generics in Java

    calendar Feb 14, 2023 · 8 min read · java generic  ·
    Share on: twitter facebook linkedin copy
    Introduction to Generics in Java

    In this tutorial, we'll look at what generics are, why they exist, and how to create generics in classes, methods, and records. In the last section, we'll examine the limitations of Generics and code examples where they don't work.


    Read More
  • What are Records in Java 14

    calendar Jan 30, 2023 · 6 min read · java record java class  ·
    Share on: twitter facebook linkedin copy
    What are Records in Java 14

    This article shows the details behind the Record keyword introduced in Java 14. We'll look at their purpose, how to use them, real-world applications, and a cheat sheet to ace your upcoming interviews and exams.


    Read More
  • Checked vs. Unchecked Exceptions in Java

    calendar Jan 23, 2023 · 5 min read · java exception  ·
    Share on: twitter facebook linkedin copy
    Checked vs. Unchecked Exceptions in Java

    In this tutorial, we'll look at the differences between checked and unchecked exceptions, when to use each, and how to handle them properly using try/catch and throws.


    Read More
  • Short Circuit Operators in Java

    calendar Oct 27, 2022 · 4 min read · java operator  ·
    Share on: twitter facebook linkedin copy
    Short Circuit Operators in Java

    This article explains the logical AND (&&) and the logical OR (||) short-circuit operators and how to use them to improve our application's performance.


    Read More
    • ««
    • «
    • 1
    • 2
    • »
    • »»

Pedro Lopes

Engineer, Writer, Traveler, Photographer Teacher, and Perpetual Student.
Read More

Disclaimer

The opinions expressed on this site are my own personal opinions and do not represent my employer’s view in any way.

Featured Posts

  • Create a movie recommendation system using the RAG technique, Spring AI, and neo4j vector store

Recent Posts

  • Why and How to use Spring AI: Interacting with llama3 and Ollama
  • What is an AI chatbot? Examples with zero and few shot prompts
  • ZonedDateTime in Java: Convert Between Timezones and Handle Daylight-Saving Time Automatically

Categories

JAVA-CORE 9 ARTIFICIAL-INTELLIGENCE 3 OBJECT-ORIENTED-PROGRAMMING 3 JAVA-STREAM 2 SPRING-AI 2 CORE-SPRING 1 DESIGN-PATTERNS 1

Series

SPRING-AI-RECOMMENDATION-SYSTEMS 2 DESIGN-PATTERNS-IN-JAVA 1 SPRING-AI-CHATBOT 1

Tags

JAVA-CLASS 2 JAVA-GENERIC 2 JAVA-SEARCH 2 JAVA-STRING 2 AI 1 CHATBOT 1 JAVA-DESIGN-PATTERN 1 JAVA-EXCEPTION 1 JAVA-OPERATOR 1 JAVA-RECORD 1 JAVA-TIME 1 LLAMA3 1 NEO4J-VECTOR-STORE 1 OLLAMA 1
All Tags
AI1 CHATBOT1 JAVA-CLASS2 JAVA-DESIGN-PATTERN1 JAVA-EXCEPTION1 JAVA-GENERIC2 JAVA-OPERATOR1 JAVA-RECORD1 JAVA-SEARCH2 JAVA-STRING2 JAVA-TIME1 LLAMA31 NEO4J-VECTOR-STORE1 OLLAMA1 RAG-TECHNIQUE1 SINGLETON1 SPRING-AI-CHATBOT1 SPRING-AI-RAG1 SPRING-INIT1
[A~Z][0~9]
Copyright (c) 2020 Chip Zoller and Dan Weru

Copyright 2022- 2025 COPYRIGHT (C) 2020 CHIP ZOLLER AND DAN WERU. All Rights Reserved

to-top