var — semantic variable markup
The var element marks a variable, parameter, constant, physical quantity, or placeholder in prose. It does not declare JavaScript variables.
CKTIS / Knowledge base
Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.
The var element marks a variable, parameter, constant, physical quantity, or placeholder in prose. It does not declare JavaScript variables.
The `video` element embeds a movie, optionally with audio. It provides browser controls and lets you specify the media source.
The wbr element marks a position where the browser may wrap text onto another line, without forcing a line break.
An HTML comment uses `<!-- ... -->` to record notes in source code. Its contents are not displayed as page text. Comments cannot be nested, and their contents must obey specific syntax restrictions.
Learn three complementary Chrome DevTools views: Elements shows the DOM, Computed explains resolved CSS values, and the accessibility tree lets you inspect semantics exposed to assistive technology.
The @Override annotation lets the compiler check whether a method overrides a supertype method or implements an interface method. It helps catch typos and accidental overloads; it does not itself change the method's runtime behavior.
`@SafeVarargs` is the author's assertion that a method or constructor handles its varargs parameter safely. It suppresses specific unchecked warnings at the declaration and call sites, but neither checks nor repairs type safety.
@SuppressWarnings suppresses selected warning categories in an annotated declaration and its contents. It neither repairs code nor guarantees type safety; use the smallest effective scope and explain the reason.
AbstractCollection.toString returns elements in square brackets, following iterator order and separating them with a comma and a space.
AbstractMap.toString returns text containing key–value mappings. Their order comes from the entrySet() iterator, not from automatic sorting.
Create a fixed-capacity queue with two slots, and distinguish that queue limit from a zero idle keep-alive time for excess pool workers.
array.clone() creates a new array containing copies of its component values. Primitive values are independent, but references still point to the same objects; in multidimensional arrays, subarrays remain shared.
Use `ArrayDeque` to add elements at the back, remove them from the front, and check how many are left or whether the queue is empty.
The expression array.length reads the number of array elements as an int. length is a public final field, not a method: the syntax has no parentheses, and an existing array's length cannot be changed.
Arrays.asList creates a fixed-size list view of an array. Elements can be replaced, but the size cannot change; the list and array share their data.
Arrays.binarySearch searches a sorted array. It returns the matching index or a negative result encoding the insertion point.
Arrays.copyOf creates a new array of a specified length. For int[], it removes trailing elements or fills extra positions with zeros without changing the original.
Arrays.sort orders int[] values in ascending order, modifying the supplied array. You can sort the entire array or a selected index range.
Use an array of reference-type elements as the source of a sequential stream, filter its elements, and collect the result into an array of the right type.
Arrays.toString returns a readable array representation as a String, with square brackets and separators between elements.
AtomicIntegerFieldUpdater provides atomic operations on an existing object's volatile int field. One updater can serve multiple instances of a class, without a separate AtomicInteger object for each field.
Initialize an atomic counter, read or replace its value, and increment it in one operation. Use a compare-and-set loop to retry a conditional update after a mismatch.
Atomically increase an `AtomicLong` counter by 1 and return the updated `long`, rather than the value before the increment.
Set the starting value of a shared counter, retrieve each number after incrementing, and see why the `POISON` sentinel gets the lowest number.