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

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

Rating 3.8
Word count
499K words
Chapters
28
ISBN
9787115400369

Tags

Summary

Sams Teach Yourself Java in 24 Hours (7th Edition) is the Chinese translation of the seventh edition of Sams Teach Yourself Java in 24 Hours by the American programmer and technical writer Rogers Cadenhead. It was translated by Hao Jisheng and published by Posts & Telecom Press. The book is organized into 24 one-hour lessons, each of which can be read in about an hour, making it suitable for complete beginners to study in sequence on their own. The content begins with understanding programming and setting up a Java development environment, then uses the first runnable program to lead readers through the complete process of writing, compiling and running code. It then covers language basics in turn—variables and data types, string handling, conditionals, loops and arrays—before moving on to creating objects and classes, describing object behavior and reusing class libraries, helping readers build a basic understanding of object-oriented programming. The second half moves on to building and laying out graphical user interfaces (Swing), event handling and input processing, and advanced topics such as data structures, exception handling, multithreading, inner classes and closures; it also covers file reading and writing, JAX-WS web services and Java2D graphics drawing, and ends with an Android app. Each chapter includes sample program listings, run output and code analysis, and ends with "Q&A," quizzes and exercises for readers to check their mastery. The book also includes appendices on using the NetBeans integrated development environment, further learning resources and setting up an Android development environment. At about 499,000 characters, it is positioned as a beginner's tutorial and can also be used by programmers familiar with other languages to quickly look up Java syntax.

Editor's review

这是一本“讲得慢、但讲得全”的 Java 入门书。全书拆成 24 个一小时的课时,每一课只推进一个概念,从“什么是程序”开始,到写出第一个能跑的类,再到界面、线程和安卓应用,学习路径非常顺滑,几乎没有需要回翻补课的断层。 它的长处在于可操作性。几乎每个知识点都跟着一段示例代码、运行结果和逐行解释,读者照着敲一遍就能看到效果;章末的“问与答”、测验和练习又把容易混淆的地方再捋一遍,自己检测有没有真正学进去,比单纯通读语法列表有效得多。书中还介绍了 NetBeans 的使用,省去新人在环境配置上反复摸索的麻烦。 如果要说取舍:本书面向入门,篇幅有限,因此对集合框架、JVM 原理、并发细节等并未深入展开,讲解也更偏“够用”而非“透彻”。另外书中的示例基于 Java 8 前后的版本,部分界面技术与安卓开发内容在今天看来略显陈旧。把它当作第一本 Java 书、打牢语法和面向对象的地基,再衔接到更深入的专业书,是最合适的使用方式。

Who it's for

A good fit for

  • 完全没有编程经验、想系统自学 Java 的零基础读者
  • 在校计算机相关专业学生,需要一本可当教材的 Java 入门书
  • 从 Python、C 等其他语言转来,想快速对照梳理 Java 语法的人
  • 希望用完整小例子边学边练、而非只看语法条目的自学者

Not a good fit for

  • 已有一两年 Java 开发经验、想深入 JVM、并发与框架原理的进阶读者
  • 主要想学 Spring 等企业级框架或后端架构的读者
  • 追求最新 Java 版本新特性(如模块化、新垃圾回收器)的读者

Reading tips

  1. 按 24 个课时的顺序读,每课读完把示例代码亲手敲一遍,不要只看不练。
  2. 遇到章末测验先自己作答再核对答案,错题回到对应小节重读一次。
  3. 先下载安装 JDK 与 NetBeans,边读边搭好环境,避免读完全书还不会运行程序。
  4. 读完后接着读《Java 核心技术》或《Effective Java》,把语法基础升级为工程能力。

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: A Tour of Java
  4. Chapter 4: Understanding How Java Programs Work
  5. Chapter 5: Storing and Modifying Information in Programs
  6. Chapter 6: Communicating with Strings
  7. Chapter 7: Making Decisions with Conditional Tests
  8. Chapter 8: Repeating Actions 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: Creating Simple User Interfaces
  14. Chapter 14: Laying Out User Interfaces
  15. Chapter 15: Responding to User Input
  16. Chapter 16: Creating Complex User Interfaces
  17. Chapter 17: Storing Objects in Data Structures
  18. Chapter 18: Handling Errors in Programs
  19. Chapter 19: Creating Threaded Programs
  20. Chapter 20: Using Inner Classes and Closures
  21. Chapter 21: Reading and Writing Files
  22. Chapter 22: Developing Web Services with JAX-WS
  23. Chapter 23: Creating Java2D Graphics
  24. Chapter 24: Writing Android Apps
  25. Appendix A: Using the NetBeans Integrated Development Environment
  26. Appendix B: Further Learning: Java Resources
  27. Appendix C: The Book's Website
  28. Appendix D: Setting Up an Android Development Environment

FAQ

这本书适合完全没有编程基础的人读吗?
适合。全书从“什么是程序”讲起,第一个示例只涉及极少语法,并完整演示编写、编译、运行的过程,作者也明确以零基础读者为对象设计章节顺序。
这本书对应英文原著的哪一本?
对应 Rogers Cadenhead 的《Sams Teach Yourself Java in 24 Hours》第七版,英文原书覆盖 Java 8 与 Android 开发,中文版由郝记生翻译,人民邮电出版社出版。
第6版和第7版应该选哪一本?
内容框架基本相同,都按 24 章循序渐进。第7版更新了版本环境与部分示例,条件允许时优先选较新的版本;若只有第6版,学习基础语法的效果差别不大。
书中的示例代码需要什么开发环境?
书中使用免费开源的 NetBeans 集成开发环境配合 JDK,附录提供了环境安装与使用说明。安装较新版本的 JDK 通常也能运行大部分示例。
读完这本书能达到什么水平?
能掌握 Java 基本语法、面向对象思路、简单界面与文件操作,并做出小程序和入门级安卓应用;但集合、并发、JVM 等深入内容需另读专业书补充。

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