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.
CKTIS / Knowledge base
Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.
nio.file.Files: practical reference: Files provides file operations whose atomicity, attributes, and behavior depend on the selected method and file-system provider.
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.
nio.file.Paths: practical reference: Paths is a factory delegating path construction to the default file system or a URI provider.
nio.file.StandardOpenOption: practical reference: StandardOpenOption enumerates file-open policies such as CREATE, TRUNCATE_EXISTING, APPEND, and SYNC.
nio.IntBuffer: practical reference: IntBuffer is an int-specialized NIO buffer with independent position/limit state and optional array or direct backing.
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.