Java 开发高频英文词汇手册(场景版)
面向前端转 Java 的开发者,全部词汇按固定出现场景分组。 原则:不背孤词。每个词给"出现位置 + 典型句子 + 中文含义 + 本项目实例"。 你在 IDE、控制台、日志、报错里看到哪个词,就翻到对应场景。
场景 1:报错信息的动词与名词(每天看到 30 次)
一句话技巧:报错消息的语法结构通常是 XXX cannot/does not ... because ...。看到 because 前的动作、because 后的主语,就能复述问题。
场景 2:Maven 构建(每次 mvnw 都见)
场景 3:Java 语言基础(读代码时见)
场景 4:HTTP / Web 框架(Javalin 版,通用词到 Spring 一样用)
场景 5:JDBC / 数据库(本项目 store 目录)
场景 6:日志(排查问题第一现场)
场景 7:JUnit 测试(本项目 test 目录高频)
场景 8:并发与多线程(进公司必读)
场景 9:部署与运行环境
场景 10:高频动词(任何场景通用,报错消息的主角)
附录:30 天高频词汇量自测(入门到能独立读报错)
按频率给三个层级,先背第一层,第二层一周内现学现用:
第 1 层(天天见,必会):exception / throw, stack trace, at, caused by, null, error, build, test, dependency, connection, query, response, request, server, client, method, class, version, port, timeout
第 2 层(报错消息里反复出现):expected/actual, cannot/could not, invalid/illegal/missing, failed to, incompatible, resolves, parse/parsed, locked/refused, out of bounds, duplicate, not found, compile, package, deploy, restart, log level, list/map/set, interface/implement, override, return, void
第 3 层(懂了就能读复杂报错):deserialize, concurrency, deadlock, race condition, classpath, classloader, unboxing/boxing(int ↔ Integer), generic/erased, lambda, streams, record, sealed class, virtual thread
附:把词汇串成本项目的最短句子(1 分钟过一遍)
"Maven compiles and packages the project; Start the server on port 3000. A request POSTs a record to /api/records; the handler validates the body, the service sets the timestamp, the repository executes a prepared statement against the H2 database. If anything fails, the exception is caught and logged, the stack trace shows the caused by — the root of the problem."