Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / Knowledge base

Knowledge base

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

Entries: 5788

Java

nio.file.Files: practical reference

nio.file.Files: practical reference: Files provides file operations whose atomicity, attributes, and behavior depend on the selected method and file-system provider.

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

nio.file.Path: practical reference

nio.file.Path: practical reference: Path is an immutable file-system path value; it need not name an existing file until an I/O operation resolves it.

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

nio.file.Paths: practical reference

nio.file.Paths: practical reference: Paths is a factory delegating path construction to the default file system or a URI provider.

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

nio.file.StandardOpenOption: practical reference

nio.file.StandardOpenOption: practical reference: StandardOpenOption enumerates file-open policies such as CREATE, TRUNCATE_EXISTING, APPEND, and SYNC.

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

nio.IntBuffer: practical reference

nio.IntBuffer: practical reference: IntBuffer is an int-specialized NIO buffer with independent position/limit state and optional array or direct backing.

Intermediate · Java SE 21 (JLS and Java SE API); examples verified on the repository Java runtime
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