Posts tagged with #java-fundamentals

java.util.stream.Stream

Master Java streams: filter, map, reduce, collect, and parallel execution for expressive functional-style operations on collections.

Ternary Operator in Java

Learn the Java ternary operator: condition ? valueIfTrue : valueIfFalse for concise branching, when to use it, and common pitfalls to avoid in code readability.

Throw and Throws: Raising and Declaring Exceptions in Java

Learn the difference between throw and throws in Java: raising exceptions vs declaring them in method signatures for checked exception propagation.

java.time (Date and Time API)

Master Java's modern date-time API: LocalDate, LocalDateTime, Instant, Duration, Period, and ZonedDateTime for robust time handling.