Sams Teach Yourself Java in 24 Hours, 8th Edition cover

Sams Teach Yourself Java in 24 Hours, 8th Edition

No rating yet
Word count
479K words
Chapters
28
Series
Sams Teach Yourself Java in 24 Hours
ISBN
9787115546050

Tags

Summary

This is the Chinese 8th edition of Sams Teach Yourself Java in 24 Hours, written for Java 9 and aimed at complete beginners with no programming experience. The book has 24 chapters organized around a "24-hour, step-by-step" approach: each chapter is sized to be read in about an hour and includes sample programs, code explanations, end-of-chapter Q&A, quizzes, and exercises. The first half begins with "Becoming a Programmer," guiding readers through installing the JDK and NetBeans and writing their first program, explaining the role of the class statement, the main method, and braces, and covering the full journey of a Java program from source code to class file to execution; it then introduces variables and data types, string handling, conditionals, loops, and arrays. The middle section moves into object-oriented programming: creating objects, describing an object's attributes and methods, reusing existing classes through inheritance, storing objects in data structures, exception handling, and multithreading, along with inner classes and lambda expressions. The later chapters turn to application-level topics: building graphical user interfaces with Swing, layout management, responding to user input, reading and writing files, the new HTTP client in Java 9, Java2D graphics, writing a Minecraft mod in Java, and developing mobile apps with Android Studio. The appendices cover using the NetBeans IDE, Java learning resources, and fixes for common environment problems.

Editor's review

如果你一直被“学Java”这件事拖着没开始,这本书的定位非常明确:它不是给老手查漏补缺的手册,而是给完全零基础的初学者设计的一条完整跑道。原系列是Sams出版社卖了二十多年的品牌,全球销量逾百万册,中文版由人民邮电出版社引进,译者为金婧、郭慧。 它的长处在于“节奏”。全书24章,每章按一小时的阅读量设计,读完一个知识点立刻有一段可运行的小程序,读者能马上看到结果;章末的问与答、测验与练习,又把容易混淆的地方再钉一遍。作者卡登海德本人是程序员与Web开发者,写过二十多本Java与互联网技术的书,讲解偏口语化,几乎不用吓人的术语堆砌。 需要提醒的是,本版基于Java 9编写,配套环境为NetBeans 8.2与较早期的JDK,书中的截图与工具链对当下的开发环境略显陈旧,安装配置部分读者可能需要自行对照新版文档。图形界面章节使用Swing,而企业开发中的主流已转向JavaFX与Web前端,读者要清楚这是入门过渡而非终点。 整体而言,这是一本“把门槛降到几乎为零”的入门书:先让你跑通第一行Hello World,再顺次补上语法、面向对象、界面与文件,最后用Minecraft Mod和Android应用两个有趣的项目收尾。作为Java的第一本书,它足够友好;但读完之后,务必再接《Java核心技术》或官方教程,把版本差异和底层原理补齐。

Who it's for

A good fit for

  • 完全没有编程经验、想从零开始学Java的读者
  • 跨专业转行、需要先跑通完整开发流程的初学者
  • 在校学生,尤其是需要配套练习与测验来巩固知识的自学者
  • 对Minecraft Mod或Android小应用感兴趣的兴趣型学习者

Not a good fit for

  • 已有Java基础、想深挖JVM或并发原理的进阶开发者
  • 使用最新JDK、希望书中环境配置完全对应当前版本的读者
  • 期待企业级框架(Spring、微服务)内容的读者

Reading tips

  1. 严格按章节顺序推进,每章的示例代码都亲手敲一遍并尝试改动后再运行。
  2. 把书中的Java 9内容与当前JDK版本对照,安装配置部分以官方文档为准。
  3. 每章末尾的测验与练习不要跳过,它们是检验是否真正理解的最快方式。
  4. 读完后接一本系统教程(如《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 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 What Your Object Is Like
  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 in Java
  24. Chapter 24 Writing Android Mobile Apps
  25. Appendix A Using the NetBeans IDE
  26. Appendix B Getting Java Resources
  27. Appendix C Fixing an Android Studio Emulator Problem
  28. Appendix D Fixing Invisible Package Errors in the NetBeans IDE

FAQ

这本书适合完全没有编程基础的人吗?
适合。全书从“什么是程序、程序怎么运行”讲起,前几章手把手带读者安装工具并写出第一个程序,每章篇幅约一小时可读完,不预设任何编程经验。
第8版和第7版有什么区别?
第8版基于Java 9编写,新增了Java 9的HTTP客户端、Lambda表达式相关章节,并把目录重排为24章,同时补充了Minecraft Mod制作与Android Studio环境修复的附录。
书里的代码用的什么开发工具?
主要使用免费的NetBeans IDE,附录A有专门的使用说明;Android部分则涉及Android Studio。注意书中版本较早,安装时建议对照官网最新说明。
学完这本书能达到什么水平?
能独立编写Java基础程序,理解变量、流程控制、数组、面向对象、异常与线程等核心概念,并能完成简单的桌面界面、文件处理和Android小程序,属于扎实的入门水平。

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