SQLException — diagnosing JDBC errors
SQLException describes database-access errors in JDBC. It exposes a message, SQLState, vendor code, cause, and a chain of additional exceptions.
CKTIS / Java
Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.
SQLException describes database-access errors in JDBC. It exposes a message, SQLState, vendor code, cause, and a chain of additional exceptions.
java.text.Collator compares text using the rules of a chosen Locale. It lets you configure which differences matter and how composed Unicode characters are handled.
time.Clock: practical reference: Clock supplies the current instant and zone, enabling fixed clocks for deterministic time-dependent code.
DayOfWeek represents the seven days of the week. DayOfWeek.MONDAY means Monday, whose ISO numeric value is 1.
java.time.Duration represents an amount of time in seconds and nanoseconds. Duration.between calculates the difference between compatible temporal objects; the result can be positive, zero, or negative.
DateTimeFormatter converts dates and times to text and parses text. Learn patterns, explicit Locale selection, strict validation, and the distinctions MM versus mm and uuuu versus yyyy.
time.format.DateTimeParseException: practical reference: DateTimeParseException reports failed date/time parsing with the parsed text and an error index.
time.Instant: practical reference: Instant models a point on the UTC time-line as epoch seconds plus nanoseconds.
LocalDate represents an immutable ISO calendar date without a time or time zone. It supports creating, shifting, comparing, parsing, and formatting dates.
LocalDateTime stores an ISO calendar date and time without a time zone or UTC offset. It supports creating values, adding hours and minutes, and formatting the result without changing the original value.
time.LocalTime: practical reference: LocalTime models time-of-day without date, offset, or zone and has nanosecond precision.
time.OffsetDateTime: practical reference: OffsetDateTime combines local date-time with a fixed UTC offset, identifying an instant without regional zone rules.
java.time.Period represents an amount in years, months, and days. Period.between calculates that amount between two LocalDate values, rather than elapsed time in seconds.
ZonedDateTime combines a local date and time, a zone, and a resolved UTC offset. It distinguishes changing zones while preserving an instant from preserving local clock time, and handles ambiguities caused by clock changes.
ZoneId identifies a time zone, while ZoneRules describes its UTC-offset rules. Learn ZoneId.of, ZoneId.getRules, and the difference between a region and a fixed offset.
ZoneOffset describes a fixed offset from UTC, not regional time-zone rules. ZoneOffset.UTC represents the zero offset, whose identifier is Z.
ArrayDeque is a double-ended queue backed by a resizable array. Learn size(), isEmpty(), addLast(), and removeFirst() to process elements in FIFO order and recognize an empty queue.
ArrayList is a mutable list backed by a resizable array. The ArrayList(Collection) constructor creates a separate list from a collection's elements.
java.util.Arrays provides static array operations. Arrays.stream creates a sequential stream over an entire array or a selected range, enabling filtering and aggregation.
util.BitSet: practical reference: BitSet is a growable packed bit vector whose logical length is the highest set bit plus one, not its storage capacity.
java.util.Collection<E> describes a group of elements. Learn how to check size and emptiness and distinguish sequential from possibly parallel streams in Java SE 21.
java.util.Collections provides static collection operations. Learn sorting, element swapping, and unmodifiable and synchronized views in Java SE 21.
java.util.Comparator describes an ordering independently of the objects' class. It lets you combine keys, reverse direction, and handle null explicitly for both whole elements and their fields.
ArrayBlockingQueue is a thread-safe FIFO queue backed by a fixed-capacity array. It transfers elements between producers and consumers and lets callers choose between waiting and receiving an immediate operation result.