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

Base64 — encoding and decoding bytes

The java.util.Base64 class represents bytes as Base64 text and recovers them by decoding. Learn the Basic variant, explicit UTF-8 conversion, and handling of malformed input.

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

Base64 in Java: encoding and decoding bytes

Use `java.util.Base64` to represent bytes as text and recover the original bytes. Base64 is reversible and provides neither confidentiality nor integrity.

Advanced · Java SE 21
Java

ByteOrder — byte ordering

ByteOrder describes the byte ordering of multibyte values. Learn the difference between BIG_ENDIAN and LITTLE_ENDIAN and how to select data interpretation explicitly in ByteBuffer.

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

Character.charCount — UTF-16 code unit count

Character.charCount(int codePoint) returns the number of char units needed to represent a code point in UTF-16: either 1 or 2. The method does not validate its argument, so its result does not establish that a value is a Unicode code point.

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

CharacterCodingException — encoding and decoding errors

CharacterCodingException is a checked exception in java.nio.charset that extends IOException. It signals a failure when converting between characters and bytes and provides a common catch type for malformed input and unmappable characters.

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