The Baeldung logo
  • The Baeldung Logo
  • Start Here
  • Spring Courses ▼▲
    • REST with Spring Boot

      The canonical reference for building a production grade API with Spring

    • Learn Spring Security

      THE unique Spring Security education if you’re working with Java today

    • Learn Spring

      From no experience to actually building stuff​

    • Learn Spring Data JPA

      The full guide to persistence with Spring Data JPA

    • View All Spring Courses

  • Java Courses ▼▲
    • Learn JUnit

      Master the most popular Java testing framework.

    • Learn Maven

      Simplify Your Build with Apache Maven

    • Learn Hibernate JPA

      Master persistence with the Java specification and Hibernate implementation

    • Learn Mockito

      Enhance your unit tests through practical mocking

    • View All Courses

  • Pricing
  • About ▼▲
    • Full Archive

      The high level overview of all the articles on the site.

    • Baeldung Ebooks

      Discover all of our eBooks

    • About Baeldung

      About Baeldung.

Java » Exception

Java is the popular programming language that originated in 1995. Today, the Java ecosystem includes a very large number of specifications, libraries, frameworks, tools, as well as a thriving community. Take a dive through our collection of Java tutorials that cover a wide array of Java-related topics.

  • Guava (108)
  • Definition (93)
  • Regex (92)
  • x Exception (91)
  • Math (91)
  • Threads (84)
  • >= Java 8 (80)
  • Apache Commons Lang (74)
  • Java Characters (72)
  • Java HashMap (63)
  • Design Pattern (57)
  • Java Integer (55)
  • String Conversions (53)
  • Java Primitives (53)

>> Resolving the “Cannot instantiate the type” Compilation Error

>> Resolving Java Exception: cannot be cast to java.lang.Comparable

>> How to Handle and Fix java.io.NotSerializableException

>> Lombok @Data and Final Fields: Solving the “Default Constructor in Base Class” Error

>> How to Fix PatternSyntaxException: “Illegal repetition near index” in Java

>> Fix DateTimeParseException: “Unable to obtain LocalDateTime from TemporalAccessor”

>> Resolving ClassCastException: Ljava.lang.Object; cannot be cast to Ljava.lang.Integer

>> Fix ClassCastException: java.math.BigInteger cannot be cast to java.lang.Integer

>> IncompatibleClassChangeError in Java

>> Fixing UnsupportedTemporalTypeException: Unsupported Field: InstantSeconds

>> Using Comparator.nullsLast() to Avoid NullPointerException When Sorting

>> Avoiding the IndexOutOfBoundsException When Using List.subList() in Java

>> Handling Nulls in ArrayList.addAll()

>> Resolving Security Exception: java.security.UnrecoverableKeyException: Cannot Recover Key

>> How to Fix EOFException in Java

>> Print the Default Value When Overriding toString() Method

>> How to Collect All Results and Handle Exceptions With CompletableFuture in a Loop

>> Shutting Down on OutOfMemoryError in Java

>> Handling NullPointerException in findFirst() When the First Element Is Null

>> Catch Common Mistakes with Error Prone Library in Java

  • ↑ Back to Top
  • 1
  • 2
  • 3
  • 4
  • 5
  • Next →
Course – LSSO – NPI EA (tag = OAuth)
LSSO Course Banner
The Baeldung logo

Courses

  • All Courses
  • Baeldung All Access
  • Baeldung All Team Access
  • Login Course Platform

Series

  • Java “Back to Basics” Tutorial
  • Learn Spring Boot Series
  • Spring Tutorial
  • Get Started with Java
  • Spring Framework Introduction
  • All About String in Java
  • Security with Spring

About

  • About Baeldung
  • The Full Archive
  • Editors
  • Our Partners
  • Partner with Baeldung
  • eBooks
  • FAQ
  • Baeldung Pro
  • Terms of Service
  • Privacy Policy
  • Company Info
  • Contact
The Baeldung Logo