Flashcards
MessageFormat advantage
Hover (or tap) to flip
Supports locale-sensitive formatting and indexed placeholders, useful in i18n contexts.
Learn moreMessage formatting in Java
Hover (or tap) to flip
Use MessageFormat or String.format() to build readable messages with placeholders.
Learn moreEnum common use cases
Hover (or tap) to flip
Use enums to model closed sets (states, roles, options) and avoid magic strings/ints.
Learn moreEnum type in Java
Hover (or tap) to flip
An enum defines a fixed set of constants and can include fields, constructors, and methods.
Learn morevar keyword limitation
Hover (or tap) to flip
var works only for local variables (not fields, method params, or return types).
Learn morevar local type inference
Hover (or tap) to flip
var lets the compiler infer the local variable type from the initializer expression.
Learn morePreview features caution
Hover (or tap) to flip
Preview features can change in future releases, so avoid relying on them in production.
Learn moreEnable preview features in Java
Hover (or tap) to flip
Use --enable-preview during compile and run to experiment with preview language features.
Learn moreJava 17 pattern matching context
Hover (or tap) to flip
Modern Java improves type checks and reduces boilerplate around instanceof/casting.
Learn moreJava 11 String enhancements
Hover (or tap) to flip
Adds useful methods like isBlank(), lines(), repeat(), and strip() for easier text handling.
Learn moreJava 11 HttpClient
Hover (or tap) to flip
Java 11 includes a modern HTTP client supporting sync/async requests and HTTP/2.
Learn moreStream API overview
Hover (or tap) to flip
Streams provide declarative operations (map/filter/reduce) over collections and data sources.
Learn moreJava 8 flagship feature
Hover (or tap) to flip
Lambda expressions enable concise functional-style code and power the Stream API.
Learn morePassing object references
Hover (or tap) to flip
The reference value is copied, so you can mutate the object but cannot swap the caller’s reference.
Learn moreJava parameter passing
Hover (or tap) to flip
Java is pass-by-value: it passes a copy of the argument value to methods.
Learn moreString ordering comparison
Hover (or tap) to flip
compareTo() compares strings lexicographically and is used for sorting/ordering.
Learn moreString equality in Java
Hover (or tap) to flip
Use equals() to compare characters/content; == checks if two references point to the same object.
Learn moreSOLID applied benefit
Hover (or tap) to flip
Encourages clean separation of responsibilities and easier evolution of codebases.
Learn moreSOLID principles summary
Hover (or tap) to flip
A set of five OO design principles that improve maintainability and extensibility.
Learn moreDIP with dependency injection
Hover (or tap) to flip