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

Enum.name(): the exact constant name

Enum.name() returns an enum constant's identifier exactly as declared. Unlike toString(), it cannot be overridden.

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

EnumClass.values() — all enum constants

EnumClass.values() returns an array of all constants of an enum in declaration order. Use it to visit them in a for loop.

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

ExecutionException — task failure when retrieving a result

ExecutionException is a checked exception thrown when retrieving the result of a task that terminated with an exception. It separates task failure from the code receiving the result; getCause() lets you inspect the underlying cause.

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

Reflective field access in Java

Identify an annotated field, read its declared type, and assign a constructed dependency while respecting Java SE 21 access rules.

Advanced · Java SE 21
Java

Flow.Publisher — publishing items with demand control

Flow.Publisher<T> describes a source of items received by subscribers. Its subscribe method connects a receiver to the source, while Flow.Subscription lets the receiver request items and cancel delivery.

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

Flow.Subscriber — receiving items with demand control

Flow.Subscriber<T> receives items and terminal signals from a publisher. Its subscription lets it express demand through request(n), allowing the receiver to control how many items are delivered.

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

Flow.Subscription — demand and cancellation

Flow.Subscription controls item delivery between a publisher and a subscriber. request(long n) increases demand, while cancel() ends reception without guaranteeing that delivery stops immediately.

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

ForkJoinPool — a pool for tasks split into subtasks

ForkJoinPool executes tasks using work-stealing. Learn synchronous invoke, the shared commonPool, and the lifecycle rules for shutting down an owned pool with shutdown.

Intermediate · Documentation scope: Java SE 21; neither the repository runtime nor the production runtime is attested.
Java

ForkJoinTask — splitting computations and combining results

ForkJoinTask represents a task executed by ForkJoinPool. Learn scheduling with fork(), retrieving results with join(), and group execution with invokeAll() through an example that splits a sum into subtasks.

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

Function.apply — call a function

`apply` takes one argument and returns the function's result. Use it to call a single function or run a previously composed chain of functions.

Basic · Java SE 21
Java

Future.isDone(): completion is not success

`Future.isDone()` checks whether a task is complete without waiting for it. It returns `true` even when the task threw an exception or was cancelled.

Intermediate · Java SE 21