Java from Scratch (5th Edition) cover

Java from Scratch (5th Edition)

Rating 3.4
Word count
618K words
Chapters
28
Series
Java from Scratch
ISBN
9787111654971

Tags

Summary

This is the 5th edition of Java from Scratch, part of the "Programming from Scratch" series, written for readers with no programming experience at all. The book is divided into four parts and 24 chapters, proceeding from syntax to object orientation to application: it opens with Java's language features, its platform system, and downloading and installing the development environment, guiding readers through their first Java program; then systematically covers the language basics—identifiers, variables and constants, primitive data types, operators and expressions, branching statements, loop statements, methods and functions, arrays and strings. The middle section focuses on object orientation, covering classes and objects, packages, encapsulation, inheritance, polymorphism, abstract classes and interfaces, inner classes, enums, reflection, annotations and generics, class loaders, and dynamic proxies. The later section moves into practical and advanced topics, including multithreading, file operations and access, data storage and manipulation, common Java data structures and algorithms, creating and parsing XML files, database connectivity, network programming, and graphical interface design. Every concept is explained alongside sample programs, with detailed code comments; each chapter ends with a summary and exercises, and a section on common pitfalls is appended. This edition revises the chapter organization and development-tool coverage of earlier editions, demonstrating primarily with the Eclipse and MyEclipse environments, and is suitable as a systematic introductory textbook or self-study guide for Java beginners.

Editor's review

很多Java入门书一上来就讲概念,读者连环境都跑不起来,这本《零基础学Java(第5版)》恰恰把最琐碎也最要命的第一步讲得很足:JDK怎么下、环境变量怎么配、出错信息怎么读,都在书里交代清楚。它的结构是典型的“教科书式”进阶路线,四篇二十四章的编排很有层次——先语法、再面向对象、后多线程与数据库、网络、界面,学到后面不会突然断层。 这本书的另一个长处是覆盖面广。除了常规的语法与OOP,还写了反射、标注、泛型、类加载器、动态代理、XML解析、JDBC等实际开发中绕不开的主题,读者学完能对Java的整体知识版图有一个完整的印象,而不是只会写几个循环。示例代码带注释,各章附小结与习题,适合跟着章节节奏一步步练。 需要提醒的是,本书基于Eclipse/MyEclipse环境讲解,部分工具与写法与今天主流的IDEA、Maven、Spring Boot生态有差距;它更适合当作“打地基”的书,而不是直接对标企业级开发的实战手册。把语法与面向对象吃透之后,再转向现代框架,会顺畅很多。

Who it's for

A good fit for

  • 完全没有编程基础、想系统入门Java的初学者
  • 计算机相关专业学生,可作为课程配套或自学教材
  • 从其他语言转Java、需要补齐语法全貌的开发者
  • 希望一次性了解Java从语法到数据库、网络等知识版图的读者

Not a good fit for

  • 已有多年Java经验、想深入框架与架构的资深工程师
  • 希望直接学习Spring Boot等现代企业框架的读者
  • 只想要速查手册、不愿按章节循序练习的人

Reading tips

  1. 务必边读边敲,每章示例亲手运行一遍,环境配置问题早遇到早解决
  2. 面向对象部分(类、继承、多态、接口)建议反复读两遍,这是后续一切的地基
  3. 每章小结与习题不要跳过,可作为自测,检验是否真正掌握
  4. 读完语法后先做一个小项目,再考虑转向IDEA、Maven与Spring等现代工具链

About the publisher

China Machine Press China · Founded in 1950

In addition to science and technology and professional publishing, the books in our catalog from China Machine Press also reflect a sustained focus on psychology, computing, management, finance and economics, and social sciences. In psychology, the catalog includes works by C. G. Jung and introductions to analytical psychology, as well as applied topics such as stress and health, and addiction and healing. In computing, it features Structure and Interpretation of Computer Programs (JavaScript Edition). Management and finance titles include Administrative Behavior (4th Edition), The Price of Inequality (Collector's Edition), and This Time Is Different: Eight Centuries of Financial Folly (Commemorative Edition). In the philosophy and history of science, there is The Worldview: The Third Edition. Relevant authors include C. G. Jung, William McGuire, Sonu Shamdasani, and Gabor Maté. Public information is limited; the above summarizes the publisher's profile based solely on the books in our catalog.

Contents

  1. Part One: Java Language Syntax Basics — Procedural Knowledge
  2. Chapter 1: Overview of Java Technology
  3. Chapter 2: Java Development Tools and Environment Setup
  4. Part Two: Java Language Syntax Basics — Object-Oriented Knowledge
  5. Chapter 3: Java Language Basics
  6. Chapter 4: Flow Control
  7. Chapter 5: Arrays and Strings
  8. Chapter 6: Classes and Objects
  9. Chapter 7: Inheritance and Polymorphism
  10. Chapter 8: Interfaces and Inner Classes
  11. Chapter 9: Exception Handling
  12. Chapter 10: Common Classes and Collections
  13. Part Three: Advanced Java Applications
  14. Chapter 11: Enums and Generics
  15. Chapter 12: Reflection and Annotations
  16. Chapter 13: Class Loaders and Dynamic Proxies
  17. Chapter 14: Multithreading
  18. Chapter 15: File Operations and Access
  19. Chapter 16: Data Storage and Manipulation
  20. Chapter 17: Java Data Structures and Algorithms
  21. Chapter 18: Creating and Parsing XML Files
  22. Chapter 19: Database Connectivity (JDBC)
  23. Chapter 20: Network Programming
  24. Part Four: Graphical Interface Design and Project Practice
  25. Chapter 21: Fundamentals of Java GUI Design
  26. Chapter 22: Common Components and Event Handling
  27. Chapter 23: Comprehensive Example Development
  28. Chapter 24: Project Practice and Debugging Techniques

FAQ

这本书需要什么基础才能读?
不需要任何编程基础。全书从Java是什么、JDK如何下载安装讲起,假定读者此前没有写过程序,只要会用电脑、能坚持动手练习即可跟上。
第5版和第4版有什么区别?
第5版由黄传禄、常建功、陈浩编著,机械工业出版社2020年出版,ISBN 9787111654971,全书四篇24章,在前版基础上调整了章节组织与开发工具说明,并扩充了反射、泛型、多线程等内容。
书里的示例用的是哪个开发环境?
本书主要基于Eclipse与MyEclipse进行讲解,包含环境搭建、项目创建与程序调试等内容。今天很多公司使用IntelliJ IDEA,读者可在掌握基本语法后自行迁移。
学完这本书能达到什么水平?
可以掌握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.

About the author

黄传禄 Author

Public information about Huang Chuanlu is limited; all that is known is that he has two works to his name, commonly classified under management and programming design. The first, Learning Financial Statements from Scratch: A Full Walkthrough of Practical Exercises, is aimed at readers with no financial background, breaking the reading and analysis of financial statements into a step-by-step, hands-on process rather than a pile of theory. The second, the Zero-Basis Programming Series (five volumes), likewise targets beginners, starting from the most basic concepts and guiding readers gradually toward hands-on practice. Though the two works differ in subject, they share the same approach: aimed at complete beginners, they stress breaking complex knowledge into clear, actionable steps and lowering the barrier to learning. This plain, practical style makes his books suitable for self-study beginners.

常建功 Author

Chang Jiangong is an author of Chinese computer technology books, about whom publicly available information is limited and whose life and educational background have not been systematically recorded. Judging from the two works held in the collection, his writing addresses two kinds of readers: database administrators and programming beginners. Oracle Database Management and Maintenance in Practice deals with the day-to-day management and maintenance of Oracle databases and is a technical reference that emphasizes practical operation, while the five-volume Zero-Basis Programming Series is aimed at readers with no programming experience and introduces the fundamentals of programming in separate volumes. The two works fall under the general categories of computer science and programming design, and together they reflect a practical, step-by-step approach suited to readers who prefer to learn by doing.

陈浩 Author

Public information about Chen Hao is limited: his nationality, dates of birth and death, and educational background are not clearly documented. Nevertheless, the 36 works held in the collection show that his writing and editing span a wide range of fields. In literature, he has been involved with a world classic such as Wuthering Heights; in history, with Studies in the History of the Eurasian Steppe; in finance and the workplace, with An Introduction to Digital Finance, The Management Journal of a Fortune 500 Human Resources Director, and books on sales techniques; and he has also touched on practical areas such as a medical English vocabulary textbook and Java programmer interview preparation. Aimed at general readers and learners, the works emphasize knowledge popularization and skills training, and are varied in genre yet practical, suitable for readers with different needs to consult by category.

More by the same author

Top rated in the same category