Sams Teach Yourself Java in 24 Hours (8th Edition) cover

Sams Teach Yourself Java in 24 Hours (8th Edition)

No rating yet
Word count
479 words
Chapters
28
Series
Sams Teach Yourself Java in 24 Hours (8th Edition)
ISBN
9787115546050

Tags

Summary

Sams Teach Yourself Java in 24 Hours (8th Edition) is the Chinese edition of the Sams Teach Yourself Java in 24 Hours series, written by the American programmer and author Rogers Cadenhead, translated by Jin Jing and Guo Hui, and published by Posts & Telecom Press in October 2020. The book has 24 chapters and 314 pages, totaling about 479,000 characters. The book follows a step-by-step structure of one hour per chapter and completion in 24 hours: the first few chapters begin with becoming a programmer, introduce the choice of programming language, how programs run, and the sources of common errors, and guide readers through installing the JDK and NetBeans and writing their first runnable Java program; subsequent chapters cover language fundamentals such as variables and data types, strings, conditional statements, loops, and arrays; the middle section moves into object-oriented material, including creating classes and objects, describing objects, inheritance and reuse of existing classes, storing objects in data structures, exception handling and thread programming, and introduces inner classes and lambda expressions; the later section turns to practical application, covering the construction, layout, and event handling of graphical user interfaces (Swing), file reading and writing, the HTTP client added in Java 9, Java2D drawing, and developing Minecraft mods and Android mobile applications with Java. Each chapter includes sample program listings, run results, and code explanations, and ends with a Workshop (Q&A), quiz questions, and exercises. The appendices cover how to use the NetBeans IDE, Java learning resources, and troubleshooting for the Android Studio emulator and NetBeans. The book does not aim to be an exhaustive grammar reference but sets the goal of doing one thing after finishing each chapter, emphasizing typing code while reading. For readers with no background, it is a low-threshold, clearly paced introductory Java tutorial; for programmers with other language experience, it can also serve as a reference for quickly becoming familiar with Java style and commonly used class libraries. Note that the book is based on Java 9, and some tools and APIs (such as Applet and some Swing examples) need adjustment in today's environment; readers should practice with newer JDK versions.

Editor's review

很多Java入门书的问题在于“厚”:一上手就是八百页语法大全,读者翻到继承和多态就放弃了。《Java入门经典》走的是另一条路——24个章节,每章讲清一个主题,配一段能跑起来的代码,读完一章就有一章的收获。这种“精读多练”的编排,对完全没有编程经验的读者尤其友好。 第8版的更新幅度不算小:把闭包部分改成了内部类与Lambda表达式,新增了Java 9的HTTP客户端章节,并把Minecraft模组开发单独成章。Minecraft那一章看似“玩”,实则把类、接口、事件监听、外部依赖这些概念串了起来,比抽象的银行账户例子更容易让人记住。 当然它也有时代印记:书中不少界面示例仍基于Swing,Applet相关内容在现代开发中已基本退场,Android部分也需要读者自己更新工具链。因此本书的定位应是一本“带你进门、建立程序直觉”的启蒙书,而不是长期查阅的手册。读完它之后,建议衔接到《Java核心技术》卷I或《Java语言程序设计》这类更系统的教材,再把集合、泛型、并发和JVM补上。作为一本书架上的第一本Java书,它足够胜任。

Who it's for

A good fit for

  • 完全没有编程经验、想用一本书把Java基础过一遍的零基础读者
  • 有其他语言基础,想快速熟悉Java语法与常用类库的程序员
  • 在校学生,需要一本章节短、配练习的课程辅助读物
  • 对Minecraft模组或Android小应用感兴趣、想边玩边学的爱好者

Not a good fit for

  • 已有Java开发经验、希望深入JVM、并发或框架的进阶读者
  • 需要系统覆盖集合框架、泛型、注解、模块系统等完整语法的读者
  • 期待以Spring Boot等现代框架做项目实战的求职者

Reading tips

  1. 先花半天把开发环境装好(JDK + NetBeans 或 IntelliJ IDEA),不要卡在配置上超过一天
  2. 每章的示例代码都亲手敲一遍,改几个参数看结果如何变化,比读代码有效得多
  3. 第1—12章为基础,务必读完;第17—19章的Swing内容可按兴趣略读
  4. 读到第21—24章时注意Java版本差异,遇到Applet或旧API可直接跳过并查阅最新文档

About the publisher

Posts & Telecom Press China · Founded in 1953

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. Chapter 1 Becoming a Programmer
  2. Chapter 2 Writing Your First Program
  3. Chapter 3 Vacationing in Java
  4. Chapter 4 Understanding How Java Programs Work
  5. Chapter 5 Storing and Changing Information in a Program
  6. Chapter 6 Using Strings to Communicate
  7. Chapter 7 Using Conditional Tests to Make Decisions
  8. Chapter 8 Repeating an Action with Loops
  9. Chapter 9 Storing Information with Arrays
  10. Chapter 10 Creating Your First Object
  11. Chapter 11 Describing Objects
  12. Chapter 12 Making the Most of Existing Objects
  13. Chapter 13 Storing Objects in Data Structures
  14. Chapter 14 Handling Errors in a Program
  15. Chapter 15 Creating a Threaded Program
  16. Chapter 16 Using Inner Classes and Lambda Expressions
  17. Chapter 17 Building a Simple Graphical User Interface
  18. Chapter 18 Laying Out a Graphical User Interface
  19. Chapter 19 Responding to User Input
  20. Chapter 20 Reading and Writing Files
  21. Chapter 21 Using Java 9's New HTTP Client
  22. Chapter 22 Drawing Java2D Graphics
  23. Chapter 23 Creating a Minecraft Mod with Java
  24. Chapter 24 Writing Android Mobile Applications
  25. Appendix A Using the NetBeans IDE
  26. Appendix B Getting Java Resources
  27. Appendix C Fixing a Problem with the Android Studio Emulator
  28. Appendix D Fixing Invisible Package Errors in the NetBeans IDE

FAQ

这本书适合完全没有编程基础的人吗?
适合。全书从“程序是什么、计算机如何执行指令”讲起,第1章就带读者安装工具,第2章写出第一个可运行程序,不预设任何编程经验。不过Java的面向对象概念仍需读者多花时间消化,建议配合动手练习。
书中用的是哪个Java版本?现在学还合适吗?
第8版基于Java 9编写,2020年出版。语言核心语法变化不大,今天仍可学习;但书中的NetBeans、Android工具链以及Applet等内容已过时,建议改用较新的JDK与IDE,遇到旧API直接跳过。
读完后还需要再读哪些书?
本书定位为入门,读完可衔接《Java核心技术》卷I打牢语法与类库基础,再根据方向选择《Java编程思想》深化面向对象理解,或以《深入理解Java虚拟机》补底层知识。
第8版和第7版、第6版有什么区别?
第8版依据英文第8版译出,篇幅约314页,新增内部类与Lambda表达式、Java 9的HTTP客户端以及Minecraft模组开发章节,同时删去了XML与Web服务等旧内容,整体更贴近现代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.

More by the same author

Top rated in the same category