Java Applications and Practice cover

Java Applications and Practice

Rating 3.4
Word count
149K words
Chapters
134
ISBN
9787121452970

Tags

Summary

Based on Java's long-term support version (Java 11), this book systematically explains Java's core syntax. The content is comprehensive and accessible, with numerous examples throughout. The book covers in detail the fundamentals of Java and object-oriented programming, GUI programming methods, the use of basic and utility classes, generics and the collections framework, Java IO, JDBC programming, multithreading, and network programming. Emphasizing the integration of theory and practice, the book includes a hands-on programming exercise as the final section of every chapter from Chapter 2 onward, applying the chapter's content to complete a corresponding case study. Chapters 2–3 progressively build a bubble case, and Chapters 4–13 progressively build an aircraft battle case.

Editor's review

Using Java 11, a long-term support release, as its baseline, this book gives a systematic and solid account of core Java syntax and object-oriented programming, covering common development topics such as graphical interfaces, basic utility classes, generics and collections, IO, JDBC, multithreading, and network programming. Unlike pure syntax books, it places a programming exercise at the end of every chapter from Chapter 2 onward and carries a bubble-sort case and an aircraft battle game case across multiple chapters, so that readers understand what knowledge is for and how it connects while gradually building complete programs. This structure of 'learn syntax within the chapter, do exercises at the chapter's end, build a project across chapters' suits learners who need to turn scattered syntax into development ability. The book balances theory and application, and the cases proceed in clear steps, making it easy to follow in class or to use for self-study. When reading, do not skip the exercises; type the code as you go, and for chapters such as multithreading and network programming, get the examples running first and then return to understand the principles. Overall it is positioned as systematic Java learning from beginner to intermediate level, not a quick-reference manual or a book on frameworks.

Who it's for

A good fit for

  • Learners with no background or beginners in Java who want to systematically master core syntax
  • University students in computer-related majors who need a Java textbook with accompanying practical cases
  • Readers with some programming experience who want to consolidate object-oriented programming and common class libraries through project cases
  • Self-learners preparing to study practical technologies such as JDBC, multithreading, and network programming

Not a good fit for

  • Advanced developers already proficient in Java who want to go deeper into frameworks, source code, or performance tuning
  • Readers who only want to look up syntax quickly and do not intend to do the exercises
  • Those who need hands-on content on enterprise frameworks such as Spring

Reading tips

  1. Read the chapters in order; in each chapter, understand the syntax first, then complete the end-of-chapter exercises on your own—do not just read without typing.
  2. Treat the bubble-sort case and the aircraft battle game case as the main thread, and review earlier knowledge points as you move across chapters.
  3. For chapters on multithreading, network programming, and JDBC, run the examples first, then study the code to understand the flow and exception handling.
  4. After finishing, close the book's cases and rewrite the key modules of the aircraft battle game from scratch to test your mastery.

About the publisher

Publishing House of Electronics Industry China · Founded in 1982

The Publishing House of Electronics Industry is a comprehensive publisher distinguished by its focus on electronic information and related fields. Judging from the more than 3,000 titles in its catalogue, its publishing covers programming and design, artificial intelligence, computer science, finance and economics, photography, and social sciences, attending both to cutting-edge technology and to general readers. Representative titles include Factor Investing: Methods and Practice, x86 Assembly Language: From Real Mode to Protected Mode, The RISC-V Reader, Artificial Intelligence: Speech Recognition, Understanding and Practice, Phased Array Radar Technology, Radar Target Characteristics, and 100 Go Mistakes and How to Avoid Them, most of which centre on technical methods and engineering practice. Its authors include Shi Chuan, Li Zhong, Wang Xiaobo, David Patterson, Andrew Waterman, and Yu Zihao, among others from China and abroad. Owing to limited public information, no further publishing features are elaborated here.

Contents

  1. 版权信息
  2. 内容简介
  3. 编委会
  4. 前言
  5. 第1章 Java语言概述
  6. 1.1 Java的发展历程
  7. 1.2 Java的特点
  8. 1.3 Java技术三大平台
  9. 1.4 Java虚拟机
  10. 1.5 Java开发环境的构建
  11. 1.6 第一个Java程序
  12. 本章小结
  13. 习题
  14. 第2章 Java语言基础
  15. 2.1 标识符、关键字和保留字
  16. 2.2 变量
  17. 2.3 基本数据类型
  18. 2.4 运算符与表达式
  19. 2.5 流程控制语句
  20. 2.6 数组
  21. 2.7 编程实训——气泡案例(随机控制气泡)
  22. 本章小结
  23. 习题
  24. 第3章 面向对象编程基础
  25. 3.1 面向对象编程的思想
  26. 3.2 类
  27. 3.3 对象
  28. 3.4 引用类型与垃圾回收
  29. 3.5 方法的重载
  30. 3.6 构造方法
  31. 3.7 实例成员与类成员
  32. 3.8 方法的参数传递机制
  33. 3.9 包
  34. 3.10 封装和访问控制
  35. 3.11 编程实训——气泡案例(气泡吞噬)
  36. 本章小结
  37. 习题
  38. 第4章 Java GUI编程技术
  39. 4.1 AWT和Swing简介
  40. 4.2 Swing常用的容器类组件
  41. 4.3 Swing常用的基本组件
  42. 4.4 布局管理器
  43. 4.5 事件处理
  44. 4.6 编程实训——飞机大战案例(实现游戏背景连续播放)
  45. 本章小结
  46. 习题
  47. 第5章 继承与多态
  48. 5.1 类的继承
  49. 5.2 成员变量的隐藏和方法重写
  50. 5.3 关键字super
  51. 5.4 关键字final
  52. 5.5 多态
  53. 5.6 对象的向上类型转换
  54. 5.7 虚拟方法调用
  55. 5.8 抽象方法和抽象类
  56. 5.9 编程实训——飞机大战案例(实现英雄机移动)
  57. 本章小结
  58. 习题
  59. 第6章 异常机制
  60. 6.1 Java的异常机制
  61. 6.2 Java的异常的分类
  62. 6.3 异常的常用方法
  63. 6.4 Java的异常的处理
  64. 6.5 自定义异常
  65. 6.6 断言
  66. 6.7 编程实训——飞机大战案例(添加子弹,处理游戏Bug)
  67. 本章小结
  68. 习题
  69. 第7章 接口与实现
  70. 7.1 接口
  71. 7.2 实现接口
  72. 7.3 接口回调
  73. 7.4 接口与多态
  74. 7.5 类与接口
  75. 7.6 函数接口与Lambda表达式
  76. 7.7 面向接口编程
  77. 7.8 编程实训——飞机大战案例(实现子弹消灭敌机)
  78. 本章小结
  79. 习题
  80. 第8章 基础类和工具类
  81. 8.1 基础类
  82. 8.2 工具类
  83. 8.3 编程实训——飞机大战案例(随机出现敌机,英雄机死亡)
  84. 本章小结
  85. 习题
  86. 第9章 泛型与集合框架
  87. 9.1 泛型概述
  88. 9.2 集合概述
  89. 9.3 List集合
  90. 9.4 Set集合
  91. 9.5 Map集合
  92. 9.6 遍历集合的方法
  93. 9.7 集合转换
  94. 9.8 集合工具类
  95. 9.9 开发过程中如何选择集合实现类
  96. 9.10 编程实训——飞机大战案例(添加奖励机,显示战绩)
  97. 本章小结
  98. 习题
  99. 第10章 Java I/O技术
  100. 10.1 文件操作类:File类
  101. 10.2 输入/输出流概述
  102. 10.3 字节流
  103. 10.4 字符流
  104. 10.5 RandomAccessFile类
  105. 10.6 PrintStream类和PrintWriter类
  106. 10.7 数组流
  107. 10.8 文件锁
  108. 10.9 编程实训——飞机大战案例(显示最高得分)
  109. 本章小结
  110. 习题
  111. 第11章 JDBC编程技术
  112. 11.1 数据库和数据库管理工具
  113. 11.2 JDBC编程规范
  114. 11.3 预编译机制
  115. 11.4 编程实训——飞机大战案例(游戏数据存入数据库中)
  116. 本章小结
  117. 习题
  118. 第12章 Java多线程机制
  119. 12.1 线程的定义
  120. 12.2 线程的创建
  121. 12.3 线程的状态控制
  122. 12.4 线程的同步和互斥
  123. 12.5 并发工具包
  124. 12.6 编程实训——飞机大战案例(添加游戏音乐)
  125. 本章小结
  126. 习题
  127. 第13章 Java网络编程技术
  128. 13.1 计算机网络的基础知识
  129. 13.2 Java网络编程的地址类
  130. 13.3 TCP Socket编程
  131. 13.4 UDP Socket编程
  132. 13.5 编程实训——飞机大战案例(设置服务器端及客户端)
  133. 本章小结
  134. 习题

FAQ

Can a complete beginner read this book directly?
Yes. The book starts from the basics of Java and object-oriented programming and includes practical cases that run through multiple chapters, so it suits beginners studying in order. Readers do need basic computer skills and a willingness to type code; if you have no programming concepts at all, it is advisable to first learn general concepts such as variables and loops.
Do I need to complete all the practical cases in the book?
It is advisable to complete at least the exercises in each chapter and the two main cases, the bubble-sort case and the aircraft battle game. Exercises are the key step in turning syntax into hands-on ability, and skipping them makes it easy to stay at the level of understanding. If time is limited, prioritize the exercises relevant to your current learning goals, then do the others.
Which Java application areas does the book cover?
The book covers core content including object-oriented fundamentals, graphical interfaces, the collections framework, IO, JDBC, multithreading, and network programming, enough to support small desktop applications, basic database operations, and simple network programs. It does not cover enterprise frameworks such as Spring; after finishing, if you need web development, you will still need to add framework and engineering knowledge.
Which Java version is the book based on?
The book is based on Java 11, a long-term support release of Java. When studying, install JDK 11 or a compatible environment to reduce version differences when running the examples; if you use a later version, just note that a few APIs behave differently.

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

Liu Lei Author · China

Liu Lei is an author whose publicly available information is limited, yet whose works span a notably wide range of fields, reflecting strong interdisciplinary writing ability. The collection includes 18 of his titles, covering politics, economics and management, computer applications, exam preparation, and inspirational growth. Among them, U.S. Nuclear Weapons Policy and National Security Strategy during the Cold War reflects his attention to international politics and security issues, while A Study of Ethical Narrative in Ming and Qing Fiction shows his academic interest in literature and ethics. His textbooks on economic law and corporate management serve teaching practice, his Java application books support technical learning, and his writing on recruitment and workplace topics stays close to real-world needs. Overall, Liu Lei's writing combines academic inquiry with practical guidance and reaches a broad readership.

陈天竺 Author · Chinese

Chen Tianzhu is a Chinese author about whom limited public information is available; details of his life, education, and professional experience cannot be confirmed. According to the library's holdings, his work Java Applications and Practice is classified under general computer science, suggesting that his writing focuses on programming languages and software development practice. The book centers on the application and practical use of Java and is intended for readers who wish to turn syntax knowledge into real programming work, so it likely combines conceptual explanation with hands-on examples and emphasizes operability and problem solving. Because only one work by this author is included and there are no supporting sources such as author statements or publisher introductions, his writing style and broader influence are difficult to assess fully. The available information indicates only an interest in Java learning paths and engineering applications, which may serve as a basic point of reference for understanding this author.

王科飞 Author

Wang Kefei: public information is limited, and at present only two computer-related works are known, namely Java Application and Practice and Python Application and Practice. Judging from the titles and their classification, his writing is aimed at programming beginners and engineering practice, covering the basic syntax, development environments, and project applications of the two mainstream languages, and belongs to the typical hands-on technical textbook category. Such books usually emphasize practical exercises and case-based implementation, with plain language and clear steps that make it easy for readers to learn while doing. The two works together cover both Java and Python, indicating that the author focuses on cross-language introductory programming teaching and can respond to the technology choices of different learners. For readers who wish to get started quickly and complete small projects, these books offer reference value. Because biographical and professional information is lacking, his identity, background, research direction, and academic experience cannot be confirmed; the above introduction is based solely on the works recorded in the database and makes no further inferences.

More by the same author

Top rated in the same category