Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / Java

Knowledge base — Java

Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.

Entries: 813

Java

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.

Intermediate · Java SE 21; repository runtime, production runtime not attested
Java

Collator — comparing text using language rules

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.

Intermediate · Java SE 21; repository runtime, production runtime not attested
Java

time.Clock: practical reference

time.Clock: practical reference: Clock supplies the current instant and zone, enabling fixed clocks for deterministic time-dependent code.

Intermediate · Java SE 21 (JLS and Java SE API); examples verified on the repository Java runtime
Java

DayOfWeek — days of the week

DayOfWeek represents the seven days of the week. DayOfWeek.MONDAY means Monday, whose ISO numeric value is 1.

Basic · Java SE 21; repository runtime, production runtime not attested
Java

Duration — elapsed time and differences between instants

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.

Basic · Java SE 21; repository runtime, production runtime not attested
Java

DateTimeFormatter — formatting and parsing dates

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.

Intermediate · Java SE 21; repository runtime, production runtime not attested
Java

time.format.DateTimeParseException: practical reference

time.format.DateTimeParseException: practical reference: DateTimeParseException reports failed date/time parsing with the parsed text and an error index.

Intermediate · Java SE 21 (JLS and Java SE API); examples verified on the repository Java runtime
Java

time.Instant: practical reference

time.Instant: practical reference: Instant models a point on the UTC time-line as epoch seconds plus nanoseconds.

Intermediate · Java SE 21 (JLS and Java SE API); examples verified on the repository Java runtime
Java

LocalDate — a date without time or time zone

LocalDate represents an immutable ISO calendar date without a time or time zone. It supports creating, shifting, comparing, parsing, and formatting dates.

Basic · Java SE 21; repository runtime, production runtime not attested
Java

LocalDateTime — date and time without a time zone

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.

Basic · Java SE 21; repository runtime, production runtime not attested
Java

time.LocalTime: practical reference

time.LocalTime: practical reference: LocalTime models time-of-day without date, offset, or zone and has nanosecond precision.

Intermediate · Java SE 21 (JLS and Java SE API); examples verified on the repository Java runtime
Java

time.OffsetDateTime: practical reference

time.OffsetDateTime: practical reference: OffsetDateTime combines local date-time with a fixed UTC offset, identifying an instant without regional zone rules.

Intermediate · Java SE 21 (JLS and Java SE API); examples verified on the repository Java runtime
Java

Period — a calendar amount between dates

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.

Basic · Java SE 21; repository runtime, production runtime not attested
Java

ZonedDateTime — date and time with a time zone

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.

Intermediate · Java SE 21; repository runtime, production runtime not attested
Java

ZoneId — a time-zone identifier

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.

Basic · Java SE 21; repository runtime, production runtime not attested
Java

ZoneOffset — a fixed offset from UTC

ZoneOffset describes a fixed offset from UTC, not regional time-zone rules. ZoneOffset.UTC represents the zero offset, whose identifier is Z.

Basic · Java SE 21; repository runtime, production runtime not attested
Java

ArrayDeque — a double-ended queue and FIFO processing

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.

Basic · Java SE 21; repository runtime, production runtime not attested
Java

ArrayList — a list and its collection-copy constructor

ArrayList is a mutable list backed by a resizable array. The ArrayList(Collection) constructor creates a separate list from a collection's elements.

Basic · Java SE 21; repository runtime, production runtime not attested
Java

java.util.Arrays — array operations and Arrays.stream

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.

Basic · Java SE 21 API reference; neither the repository runtime nor the production runtime is attested
Java

util.BitSet: practical reference

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.

Intermediate · Java SE 21 (JLS and Java SE API); examples verified on the repository Java runtime
Java

Collection — size, emptiness, and streams

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.

Basic · Java SE 21; repository runtime, production runtime not attested
Java

Collections — collection algorithms and views

java.util.Collections provides static collection operations. Learn sorting, element swapping, and unmodifiable and synchronized views in Java SE 21.

Intermediate · Java SE 21; repository runtime, production runtime not attested
Java

Comparator — composing ordering rules

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.

Intermediate · Java SE 21; repository runtime, production runtime not attested
Java

ArrayBlockingQueue — a fixed-capacity blocking queue

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.

Intermediate · Java SE 21; repository runtime, production runtime not attested