Java in 24 Hours, 8th Edition
Tags
Summary
The opening chapters begin with "what programmers do," then guide readers through installing development tools, writing and running their first Java program, and understanding how Java code travels from source file to bytecode. The book then moves into language fundamentals: variable types and assignment, integers and floating-point numbers, characters and strings, Boolean values, operators, conditionals, loops, and arrays. The middle section covers object-oriented programming: creating objects, adding attributes and methods, inheritance and reuse of existing classes, and using data structures to store collections of objects. Later chapters address exception handling, threads, inner classes and lambda expressions, building and laying out graphical user interfaces with Swing, responding to user input, file I/O, the new HTTP client, Java2D drawing, and conclude with two hands-on projects: a Minecraft mod and an Android app.
Each chapter includes sample programs, output results, and code analysis, with Q&A sections, quizzes, and exercises at the end to help readers check their understanding. Appendices cover using the NetBeans IDE, finding Java learning resources, and troubleshooting the Android Studio emulator and NetBeans package errors. Written for Java 9, the book is ideal as a systematic introductory textbook to be read alongside hands-on coding practice.
Editor's review
Who it's for
A good fit for
- 零基础、第一次接触编程,想系统学一门语言的读者
- 在校学生或转行者,需要用一本带练习题的书打牢 Java 语法
- 有其他语言经验、想快速补齐 Java 面向对象与常用类库的开发者
- 需要一本可当课件的教材的中小学或培训机构教师
Not a good fit for
- 已有 Java 项目经验、想深入 JVM、并发或框架原理的进阶开发者
- 希望直接学 Spring 等企业框架、完整项目实战的读者
- 只想查阅语法速查、不愿跟着敲示例代码的读者
Reading tips
- 按章节顺序推进,每章的示例代码亲手敲一遍,再对照书中输出结果排查差异。
- 把章末的问答与练习当作自测,答错或做不出的地方回到对应小节重读,不要跳过。
- 读完前13章语法与面向对象部分后再进入 GUI、文件和 Android 章节,避免基础不牢。
- 动手前先确认本机 JDK 版本与书中所用 Java 9 的差异,遇到 API 变动以官方文档为准。
About the publisher
Posts & Telecom Press is known for its strengths in science and technology, computing, and information and communications titles, and has extended its publishing into photography, art, software learning, and inspirational growth, giving it a fairly diverse range. Its catalog includes computing and communications works such as Refactoring and Patterns (Revised Edition) and Huawei Switch Learning Guide (Second Edition), alongside bilingual collector's editions such as The Little Prince (Chinese-English-French illustrated collector's edition), The Great Gatsby, and Three Days to See. Beijing Ten Years: 1980-1990 and Ghost Blade: WLOP Personal Illustration Collection reflect its presence in photography and art. Its authors include Antoine de Saint-Exupéry, Helen Keller, Joshua Kerievsky, Wang Da, Zhang Zhaozeng, and WLOP.
Contents
- 第1章 成为一个程序员
- 第2章 编写读者的第一个程序
- 第3章 Java“度假”之旅
- 第4章 理解Java程序是如何运作的
- 第5章 在程序中存储和更改值
- 第6章 使用字符串进行通信
- 第7章 使用条件测试来做决定
- 第8章 用循环重复一个动作
- 第9章 用数组存储信息
- 第10章 创建第一个对象
- 第11章 描述对象
- 第12章 充分利用现有的对象
- 第13章 在数据结构中存储对象
- 第14章 处理程序中的错误
- 第15章 创建线程程序
- 第16章 使用内部类和Lambda表达式
- 第17章 构建一个简单的图形用户界面
- 第18章 布局图形用户界面
- 第19章 响应用户输入
- 第20章 读/写文件
- 第21章 使用Java 9的新HTTP客户端
- 第22章 绘制Java2D图形
- 第23章 使用Java创建Minecraft Mod
- 第24章 编写Android移动应用程序
- 附录A 使用NetBeans IDE
- 附录B 获取Java资源
- 附录C 修复Android Studio模拟器的一个问题
- 附录D 修复NetBeans IDE中不可见的包错误
FAQ
这本书适合完全没有编程基础的人吗?
第8版和第7版主要有什么区别?
书中用的是哪个 Java 版本和开发工具?
书里的代码和练习在哪里获取?
读完这本之后该看什么?
Comments
Find this book
This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.