Skip to main content

13 docs tagged with "java"

View all tags

AOP

Java 的切面编程:Spring AOP 的运行期代理与 AspectJ 的字节码织入,切点与通知的语义,以及自调用、顺序与代理边界导致的失效。

Architecture

Spring Boot auto-configuration, the bean lifecycle, dependency injection and externalized configuration.

Async

Java 的异步模型:CompletableFuture 的组合与陷阱、虚拟线程的调度与成本、响应式流的背压,以及执行器、超时与取消的边界。

Concept

Java 用静态名义类型、JVM 字节码、类加载、JIT 与 GC 组成一套运行时契约,换来跨平台与生态,代价是启动预热和内存占用。

Concurrency

Platform threads, virtual threads, coroutines and effect systems: how each JVM language expresses concurrency.

Error

Java 的失败处理:受检与非受检异常的契约,try-with-resources 与抑制异常,异常链的因果关系,以及领域错误在边界上的转换。

Feature: Interop

Mixing Java, Kotlin and Scala in one build: the bytecode contract, the guarantees that vanish across the boundary, and how to choose.

Functions

Java 把行为写成方法、lambda、方法引用与函数接口,本页拆解重载解析、变长参数、捕获规则与 invokedynamic 在运行时的真实代价。

OOP

Java 的面向对象:类、接口、记录、枚举与密封层级的取舍,继承与组合的边界,以及分派、equals/hashCode 与脆弱基类的约束。

Runtime: Class Loading

The class file, the loading and linking phases, class loader hierarchy, reflection and the leaks a class loader can hold.

Runtime: Memory and GC

Runtime data areas, allocation, the garbage collectors compared, pause budgets and the OOM types that follow.

Syntax

Java 的语法面:50 个关键字、字面量与语句骨架,以及 record、sealed、模式匹配和文本块在 8/11/17/21 上的版本边界。

Type

Nominal typing, generics and erasure, null safety and algebraic data types across Java, Kotlin and Scala.