Introduction to Java Programming cover

Introduction to Java Programming

Rating 3.2
Word count
72K words
Chapters
271
ISBN
9787115461698

Tags

Summary

This book covers the Java development environment, the core Java language (data types, operators, control statements, etc.), object-oriented programming features in Java (objects, classes, interfaces, exceptions, multithreading, etc.), exception handling and input/output, JDBC database programming, Java GUI development and network programming, and a comprehensive hands-on project: developing the game Tetris.

Editor's review

Java Programming for Beginners, written by Yin Han and published by Posts & Telecom Press, is a Java textbook for learners with no prior programming experience. The content is solid and the knowledge system is clearly structured: it starts from basic computer concepts and programming thinking and gradually moves into essential Java syntax, core object-oriented concepts, and practical skills such as GUI and database programming. The author, Yin Han, is a front-line university instructor, and her writing reflects accumulated teaching practice. She emphasizes accessible explanations of concepts and representative code examples, aiming to help readers build a solid foundation rather than merely listing syntax details.

From a professional perspective, the book's organization follows principles of cognition, offering multiple explanations and exercises for core difficulties such as classes and objects, which helps beginners overcome comprehension barriers. The comprehensive example chapter attempts to connect scattered knowledge points and is quite helpful for cultivating initial project thinking. Compared with some books on the market that pursue quick results or showcase tricks, this book is more steady and systematic; its value lies in providing readers with a complete, well-structured initial learning path with few misleading detours. Of course, as an introductory tutorial, it inevitably has limitations in covering new technology ecosystems (such as features of new Java versions and mainstream development frameworks), which learners need to expand through other materials after mastering the basics in this book. Overall, this is a trustworthy first Java book, especially suitable for readers who progress steadily in a classroom or through disciplined self-study.

Who it's for

A good fit for

  • First-year college students in computer-related majors with no prior experience
  • Self-learners who want to study Java programming systematically and move into software development
  • Readers who need a clearly structured, patiently explained introductory textbook as their main learning path
  • Learners who prefer to start from principles and thinking rather than directly imitating project code

Not a good fit for

  • Experienced developers seeking to quickly master advanced Java features or popular frameworks
  • Readers who only want to cope with short-term tasks through fragmented reading or simple examples

Reading tips

  1. It is recommended to study the chapters in order and to personally complete the example code and exercises in each chapter to consolidate understanding.
  2. When encountering core chapters such as object-oriented programming, slow down appropriately and use diagrams and real-life examples to deepen conceptual modeling.
  3. After learning the basic syntax, try imitating and extending the comprehensive example at the end of the book to experience the integrated application of knowledge points.

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. 版权信息
  2. 内容提要
  3. 前言
  4. 第1章 Java入门
  5. 1.1 关于Java
  6. 1.1.1 Java的历史
  7. 1.1.2 Java的优点
  8. 1.1.3 Java的开发平台架构
  9. 1.1.4 Java的版本
  10. 1.2 开发环境搭建
  11. 1.2.1 安装JDK
  12. 1.2.2 配置环境变量
  13. 1.2.3 校验环境变量配置是否正确
  14. 1.3 第一个Java程序
  15. 1.4 Eclipse集成开发工具
  16. 1.4.1 安装Eclipse
  17. 1.4.2 Eclipse下的开发步骤
  18. 习题一
  19. 第2章 Java编程基础
  20. 2.1 基本语法格式
  21. 2.1.1 Java程序组成单位
  22. 2.1.2 注释
  23. 2.1.3 标识符
  24. 2.1.4 关键字
  25. 2.2 变量及变量的作用域
  26. 2.2.1 变量声明及初始化
  27. 2.2.2 变量类型
  28. 2.2.3 数据类型之间的相互转换
  29. 2.2.4 变量的作用域
  30. 2.3 运算符
  31. 2.3.1 算术运算符
  32. 2.3.2 赋值运算符
  33. 2.3.3 关系运算符
  34. 2.3.4 逻辑运算符
  35. 2.3.5 位运算符
  36. 2.3.6 其他运算符
  37. 2.3.7 运算符的优先级
  38. 2.4 流程控制
  39. 2.4.1 if条件语句
  40. 2.4.2 switch语句
  41. 2.4.3 while循环语句
  42. 2.4.4 do-while循环语句
  43. 2.4.5 for循环语句
  44. 2.4.6 循环嵌套语句
  45. 2.4.7 break语句
  46. 2.4.8 continue语句
  47. 2.5 数组
  48. 2.5.1 一维数组
  49. 2.5.2 二维数组
  50. 习题二
  51. 第3章 面向对象
  52. 3.1 面向对象入门
  53. 3.1.1 面向对象的概念
  54. 3.1.2 面向过程与面向对象
  55. 3.2 面向对象编程
  56. 3.2.1 声明类
  57. 3.2.2 创建对象
  58. 3.2.3 封装
  59. 3.2.4 权限访问修饰符
  60. 3.2.5 包
  61. 3.2.6 构造方法
  62. 3.2.7 方法重载
  63. 3.2.8 this修饰符
  64. 3.2.9 static修饰符
  65. 3.2.10 参数传递
  66. 3.3 继承
  67. 3.3.1 继承概念
  68. 3.3.2 重写(覆盖)
  69. 3.3.3 super关键字
  70. 3.3.4 final修饰符
  71. 3.4 多态
  72. 3.4.1 子类对象与父类对象互相转换
  73. 3.4.2 instanceof修饰符
  74. 3.4.3 多态常见的用法
  75. 3.5 抽象类与接口
  76. 3.5.1 抽象类
  77. 3.5.2 接口
  78. 3.5.3 抽象类与接口的区别
  79. 3.6 内部类
  80. 3.6.1 成员内部类
  81. 3.6.2 局部内部类
  82. 3.6.3 静态内部类
  83. 3.6.4 匿名内部类
  84. 3.7 异常
  85. 3.7.1 何谓异常
  86. 3.7.2 Java异常体系
  87. 3.7.3 异常的类型
  88. 3.7.4 Java中的异常处理
  89. 3.7.5 自定义异常
  90. 习题三
  91. 第4章 常用API
  92. 4.1 Java API入门
  93. 4.2 字符串相关类(String类和StringBuffer类)
  94. 4.2.1 String类
  95. 4.2.2 StringBuffer类
  96. 4.3 基本数据类型包装类
  97. 4.3.1 八种基本类型对象的包装类
  98. 4.3.2 包装类常用的方法与变量
  99. 4.4 Math类
  100. 4.5 日期和时间相关类
  101. 4.5.1 Date类
  102. 4.5.2 SimpleDateFormat类
  103. 4.5.3 Calendar类
  104. 4.6 数字类型处理相关类
  105. 4.6.1 NumberFormat类
  106. 4.6.2 BigDecimal类
  107. 4.7 Random类
  108. 习题四
  109. 第5章 集合框架
  110. 5.1 集合框架入门
  111. 5.1.1 集合简介
  112. 5.1.2 集合分类
  113. 5.2 Collection接口
  114. 5.3 Iterator接口
  115. 5.4 List接口
  116. 5.4.1 概述
  117. 5.4.2 ArrayList类
  118. 5.4.3 LinkedList类
  119. 5.5 Set接口
  120. 5.5.1 概述
  121. 5.5.2 HashSet类
  122. 5.5.3 TreeSet类
  123. 5.6 Map接口
  124. 5.6.1 概述
  125. 5.6.2 HashMap类
  126. 5.6.3 TreeMap类
  127. 习题五
  128. 第6章 GUI编程
  129. 6.1 GUI入门
  130. 6.1.1 GUI概述
  131. 6.1.2 何为GUI
  132. 6.1.3 GUI编程步骤
  133. 6.2 布局管理器
  134. 6.2.1 BorderLayout布局管理器
  135. 6.2.2 FlowLayout布局管理器
  136. 6.2.3 GridLayout布局管理器
  137. 6.2.4 CardLayout布局管理器
  138. 6.2.5 绝对定位
  139. 6.3 基本容器
  140. 6.3.1 JFrame
  141. 6.3.2 JPanel
  142. 6.4 基本组件
  143. 6.4.1 标签组件JLabel
  144. 6.4.2 按钮组件JButton
  145. 6.4.3 文本组件
  146. 6.4.4 菜单组件
  147. 6.5 GUI事件处理
  148. 6.5.1 事件的概念
  149. 6.5.2 Java事件处理流程
  150. 6.5.3 常见事件
  151. 习题六
  152. 第7章 IO流与文件
  153. 7.1 IO流入门
  154. 7.1.1 IO流的概念
  155. 7.1.2 IO流类的层次结构
  156. 7.2 File类
  157. 7.3 字节流
  158. 7.3.1 字节输入流父类(InputStream)
  159. 7.3.2 字节输出流父类(OutputStream)
  160. 7.3.3 FileInputStream类与FileOutputStream类
  161. 7.3.4 DataInputStream类与DataOutputStream类
  162. 7.3.5 BufferedInputStream类与BufferedOutputStream类
  163. 7.3.6 ObjectInputStream类与ObjectOutputStream类
  164. 7.3.7 PrintStream类
  165. 7.4 字符流
  166. 7.4.1 字符输入流父类(Reader)
  167. 7.4.2 字符输出流父类(Writer)
  168. 7.4.3 FileReader类与FileWriter类
  169. 7.4.4 InputStreamReader类与OutputStreamWriter类
  170. 7.4.5 BufferedReader类与BufferedWriter类
  171. 7.4.6 PrintWriter类
  172. 7.5 随机访问文件类
  173. 习题七
  174. 第8章 多线程
  175. 8.1 线程入门
  176. 8.1.1 线程相关概念
  177. 8.1.2 使用线程的好处
  178. 8.2 多线程编程
  179. 8.2.1 继承Thread类
  180. 8.2.2 实现Runnable接口
  181. 8.3 线程的生命周期
  182. 8.4 线程的控制
  183. 8.4.1 线程的启动
  184. 8.4.2 线程的挂起
  185. 8.4.3 线程的常用方法
  186. 8.4.4 线程状态检查
  187. 8.4.5 结束线程
  188. 8.4.6 后台线程
  189. 8.5 线程的同步
  190. 8.5.1 同步代码块
  191. 8.5.2 同步方法
  192. 8.6 线程的死锁
  193. 8.7 线程的通信
  194. 习题八
  195. 第9章 网络编程
  196. 9.1 网络编程入门
  197. 9.1.1 TCP
  198. 9.1.2 UDP
  199. 9.2 IP地址封装
  200. 9.3 套接字(Socket)编程
  201. 9.3.1 什么是套接字(Socket)
  202. 9.3.2 套接字(Socket)通讯的过程
  203. 9.3.3 客户端套接字
  204. 9.3.4 服务器端套接字
  205. 9.3.5 开发Socket
  206. 9.4 数据报编程
  207. 9.4.1 DatagramPacket类
  208. 9.4.2 DatagramSocket类
  209. 习题九
  210. 第10章 JDBC数据库编程
  211. 10.1 JDBC入门
  212. 10.1.1 JDBC概述
  213. 10.1.2 JDBC的类与接口
  214. 10.1.3 JDBC实现原理
  215. 10.1.4 JDBC驱动程序分类
  216. 10.2 JDBC开发
  217. 10.2.1 数据库连接的主要步骤
  218. 10.2.2 加载JDBC驱动程序
  219. 10.2.3 建立一个数据库的连接
  220. 10.2.4 创建一个statement
  221. 10.2.5 执行SQL语句
  222. 10.2.6 处理结果
  223. 10.2.7 关闭连接
  224. 10.3 操作数据库
  225. 10.3.1 创建数据库和表
  226. 10.3.2 添加数据
  227. 10.3.3 查询数据
  228. 10.3.4 修改数据
  229. 10.3.5 删除数据
  230. 10.4 批处理
  231. 10.4.1 Statement批处理
  232. 10.4.2 PreparedStatement批处理
  233. 10.5 JDBC元数据
  234. 10.5.1 元数据概述
  235. 10.5.2 数据库的元数据
  236. 10.5.3 结果集的元数据
  237. 10.6 JDBC事务管理
  238. 10.6.1 事务概述
  239. 10.6.2 提交和回滚
  240. 习题十
  241. 第11章 综合项目实训——俄罗斯方块
  242. 任务一 面向对象的分析与设计
  243. 【任务描述】
  244. 【任务分析】
  245. 【任务实施】
  246. 【任务小结】
  247. 任务二 主体框架搭建
  248. 【任务描述】
  249. 【任务分析】
  250. 【任务实施】
  251. 【任务小结】
  252. 任务三 方块产生与自动下落
  253. 【任务描述】
  254. 【任务分析】
  255. 【任务实施】
  256. 【任务小结】
  257. 任务四 方块的移动与显示
  258. 【任务描述】
  259. 【任务分析】
  260. 【任务实施】
  261. 【任务小结】
  262. 任务五 障碍物的生成与消除
  263. 【任务描述】
  264. 【任务分析】
  265. 【任务实施】
  266. 【任务小结】
  267. 任务六 游戏结束
  268. 【任务描述】
  269. 【任务分析】
  270. 【任务实施】
  271. 【任务小结】

FAQ

Is this book suitable for someone who has never programmed before?
Very suitable. The book begins with basic concepts of computers and programming, uses plain language, and progresses step by step; it is an introductory guide carefully designed for beginners.
Which Java version is the code in the book based on?
The book is mainly based on Java SE 8 and covers the core syntax and features of that version. These are the foundations of the Java language and are essential for subsequently learning any new version or framework.
What level can I reach after studying this book?
You will have a solid grasp of core Java syntax and object-oriented programming concepts, be able to write console applications and simple GUI programs, and have laid a solid foundation for subsequently studying Java Web development, Android development, or courses such as data structures.

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

Yin Han is an author about whom limited public information is available. The library currently holds one work by this author, Java Programming Introduction. The book shows that Yin Han writes for programming beginners, with the subject falling under the common category of programming design and focusing on the basics of the Java language rather than advanced theory or framework-specific topics. Introductory books of this kind usually take on the task of connecting scattered syntax, the development environment, and basic programming ideas. The author needs to keep a clear rhythm between explaining concepts and arranging examples so that readers without a programming background can gradually get started. Java Programming Introduction is the main basis for understanding Yin Han's writing profile. Its content tends toward practical, step-by-step learning and is suitable as study material at the introductory stage. For this reason, the library materials present Yin Han as a technical writer serving beginners.

崔英敏 Author

Cui Yingmin is an author about whom limited public information is available. Only one work by this author can currently be identified, Java Programming Introduction, which falls under the category of programming and design. Judging from this work, Cui Yingmin writes for beginners, focusing on the fundamentals of the Java language and the basics of program design, in the manner of a typical introductory technical tutorial. Because reliable information on the author's life, education, and professional experience is lacking, this profile makes no speculation about the author's identity. As far as the existing work shows, the content emphasizes foundations and proceeds step by step, making it suitable for readers new to programming. For those who wish to learn introductory Java knowledge, such a textbook can serve as a starting reference. Further public materials are needed to shed light on the author's other works and activities.

Wang Hai Author · China · 1957

Wang Hai, originally named Wang Zhenhai, was born in Xianyang, Shaanxi, in 1957. He is a member of the China Writers Association, vice chairman of the Shaanxi Writers Association, and chairman of the Xixian New Area Writers Association. He is primarily a novelist, and works such as Laofen, Renfan, Tiantang, Chengshi Men, Xinyi, Jinhua, and Huijia draw on real life and focus on ordinary people's fates and social change. Laofen received the International Award for Culture and Scientific Exchange from the United States; Tiantang was adapted into the stage play The Bell Fades Away, which won an Outstanding Production award from the Ministry of Culture. The library also includes his management title From HR to HRBP: Seven Practical Scenarios and Essential Skills for Becoming a Professional HRBP.

何楚行 Author · Chinese

He Chuxing is a Chinese author about whom little public information is available. All that is known is that he has written one book, Java Programming for Beginners, which falls under the category of programming and design. Judging from the title and category, the book is aimed at readers new to the Java language, covering the fundamentals of programming, basic syntax, and hands-on practice, with the goal of helping readers with no programming experience gain a preliminary understanding of Java and gradually write programs of their own. The value of an introductory technical book lies less in fine prose than in clear organization and workable examples; in this respect, He Chuxing's work belongs to the tradition of practical introductory textbooks, playing the role of popularizing and guiding in programming education. Because no reliable records exist regarding the author's personal background, education, or other writings, no speculation is offered here; the above introduction is based solely on the work held in the collection.

徐健 Author

Xu Jian's publicly available information is limited, yet his writing and editorial work show breadth and practicality across several fields. Four of his works are included here, covering medicine, general computing, programming design, and management. Among them, A Panoramic Analysis of the Fermentation Mechanisms of Shenqu, a Traditional Chinese Medicine, examines the scientific mechanisms of processing and fermentation in traditional Chinese medicine, reflecting the author's attention to professional detail. Practice of Dedicated 4G Network Optimization and Introduction to Java Programming address practical technologies in communications and programming, balancing introductory theory with engineering practice. Learn to Be a Warehouse Supervisor from Scratch targets complete beginners and focuses on entry-level guidance for management roles. Overall, Xu Jian's works are oriented toward specific application scenarios, written in plain language with an emphasis on operability, making them suitable for beginners and frontline practitioners.

邹佛新 Author · Chinese

Zou Foxin is a Chinese author about whom little public information is available; no reliable records of his birth and death dates, education, or professional career have been found. According to the library's holdings, he has only one work, Java Programming Introduction, which is classified under programming design, indicating that his writing focuses on basic instruction in computer programming languages. This work is aimed at beginners in Java, emphasizing the explanation of introductory concepts and preliminary training in program design; its approach is presumably step-by-step and easy to follow, helping readers build a basic understanding of Java programming. Although information about the author himself is very limited, this book, as his representative work, remains the main basis for understanding his subject matter and writing style.

More by the same author

Top rated in the same category