Introduction to Java Programming
Tags
Summary
Editor's review
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
- It is recommended to study the chapters in order and to personally complete the example code and exercises in each chapter to consolidate understanding.
- When encountering core chapters such as object-oriented programming, slow down appropriately and use diagrams and real-life examples to deepen conceptual modeling.
- 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 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章 Java入门
- 1.1 关于Java
- 1.1.1 Java的历史
- 1.1.2 Java的优点
- 1.1.3 Java的开发平台架构
- 1.1.4 Java的版本
- 1.2 开发环境搭建
- 1.2.1 安装JDK
- 1.2.2 配置环境变量
- 1.2.3 校验环境变量配置是否正确
- 1.3 第一个Java程序
- 1.4 Eclipse集成开发工具
- 1.4.1 安装Eclipse
- 1.4.2 Eclipse下的开发步骤
- 习题一
- 第2章 Java编程基础
- 2.1 基本语法格式
- 2.1.1 Java程序组成单位
- 2.1.2 注释
- 2.1.3 标识符
- 2.1.4 关键字
- 2.2 变量及变量的作用域
- 2.2.1 变量声明及初始化
- 2.2.2 变量类型
- 2.2.3 数据类型之间的相互转换
- 2.2.4 变量的作用域
- 2.3 运算符
- 2.3.1 算术运算符
- 2.3.2 赋值运算符
- 2.3.3 关系运算符
- 2.3.4 逻辑运算符
- 2.3.5 位运算符
- 2.3.6 其他运算符
- 2.3.7 运算符的优先级
- 2.4 流程控制
- 2.4.1 if条件语句
- 2.4.2 switch语句
- 2.4.3 while循环语句
- 2.4.4 do-while循环语句
- 2.4.5 for循环语句
- 2.4.6 循环嵌套语句
- 2.4.7 break语句
- 2.4.8 continue语句
- 2.5 数组
- 2.5.1 一维数组
- 2.5.2 二维数组
- 习题二
- 第3章 面向对象
- 3.1 面向对象入门
- 3.1.1 面向对象的概念
- 3.1.2 面向过程与面向对象
- 3.2 面向对象编程
- 3.2.1 声明类
- 3.2.2 创建对象
- 3.2.3 封装
- 3.2.4 权限访问修饰符
- 3.2.5 包
- 3.2.6 构造方法
- 3.2.7 方法重载
- 3.2.8 this修饰符
- 3.2.9 static修饰符
- 3.2.10 参数传递
- 3.3 继承
- 3.3.1 继承概念
- 3.3.2 重写(覆盖)
- 3.3.3 super关键字
- 3.3.4 final修饰符
- 3.4 多态
- 3.4.1 子类对象与父类对象互相转换
- 3.4.2 instanceof修饰符
- 3.4.3 多态常见的用法
- 3.5 抽象类与接口
- 3.5.1 抽象类
- 3.5.2 接口
- 3.5.3 抽象类与接口的区别
- 3.6 内部类
- 3.6.1 成员内部类
- 3.6.2 局部内部类
- 3.6.3 静态内部类
- 3.6.4 匿名内部类
- 3.7 异常
- 3.7.1 何谓异常
- 3.7.2 Java异常体系
- 3.7.3 异常的类型
- 3.7.4 Java中的异常处理
- 3.7.5 自定义异常
- 习题三
- 第4章 常用API
- 4.1 Java API入门
- 4.2 字符串相关类(String类和StringBuffer类)
- 4.2.1 String类
- 4.2.2 StringBuffer类
- 4.3 基本数据类型包装类
- 4.3.1 八种基本类型对象的包装类
- 4.3.2 包装类常用的方法与变量
- 4.4 Math类
- 4.5 日期和时间相关类
- 4.5.1 Date类
- 4.5.2 SimpleDateFormat类
- 4.5.3 Calendar类
- 4.6 数字类型处理相关类
- 4.6.1 NumberFormat类
- 4.6.2 BigDecimal类
- 4.7 Random类
- 习题四
- 第5章 集合框架
- 5.1 集合框架入门
- 5.1.1 集合简介
- 5.1.2 集合分类
- 5.2 Collection接口
- 5.3 Iterator接口
- 5.4 List接口
- 5.4.1 概述
- 5.4.2 ArrayList类
- 5.4.3 LinkedList类
- 5.5 Set接口
- 5.5.1 概述
- 5.5.2 HashSet类
- 5.5.3 TreeSet类
- 5.6 Map接口
- 5.6.1 概述
- 5.6.2 HashMap类
- 5.6.3 TreeMap类
- 习题五
- 第6章 GUI编程
- 6.1 GUI入门
- 6.1.1 GUI概述
- 6.1.2 何为GUI
- 6.1.3 GUI编程步骤
- 6.2 布局管理器
- 6.2.1 BorderLayout布局管理器
- 6.2.2 FlowLayout布局管理器
- 6.2.3 GridLayout布局管理器
- 6.2.4 CardLayout布局管理器
- 6.2.5 绝对定位
- 6.3 基本容器
- 6.3.1 JFrame
- 6.3.2 JPanel
- 6.4 基本组件
- 6.4.1 标签组件JLabel
- 6.4.2 按钮组件JButton
- 6.4.3 文本组件
- 6.4.4 菜单组件
- 6.5 GUI事件处理
- 6.5.1 事件的概念
- 6.5.2 Java事件处理流程
- 6.5.3 常见事件
- 习题六
- 第7章 IO流与文件
- 7.1 IO流入门
- 7.1.1 IO流的概念
- 7.1.2 IO流类的层次结构
- 7.2 File类
- 7.3 字节流
- 7.3.1 字节输入流父类(InputStream)
- 7.3.2 字节输出流父类(OutputStream)
- 7.3.3 FileInputStream类与FileOutputStream类
- 7.3.4 DataInputStream类与DataOutputStream类
- 7.3.5 BufferedInputStream类与BufferedOutputStream类
- 7.3.6 ObjectInputStream类与ObjectOutputStream类
- 7.3.7 PrintStream类
- 7.4 字符流
- 7.4.1 字符输入流父类(Reader)
- 7.4.2 字符输出流父类(Writer)
- 7.4.3 FileReader类与FileWriter类
- 7.4.4 InputStreamReader类与OutputStreamWriter类
- 7.4.5 BufferedReader类与BufferedWriter类
- 7.4.6 PrintWriter类
- 7.5 随机访问文件类
- 习题七
- 第8章 多线程
- 8.1 线程入门
- 8.1.1 线程相关概念
- 8.1.2 使用线程的好处
- 8.2 多线程编程
- 8.2.1 继承Thread类
- 8.2.2 实现Runnable接口
- 8.3 线程的生命周期
- 8.4 线程的控制
- 8.4.1 线程的启动
- 8.4.2 线程的挂起
- 8.4.3 线程的常用方法
- 8.4.4 线程状态检查
- 8.4.5 结束线程
- 8.4.6 后台线程
- 8.5 线程的同步
- 8.5.1 同步代码块
- 8.5.2 同步方法
- 8.6 线程的死锁
- 8.7 线程的通信
- 习题八
- 第9章 网络编程
- 9.1 网络编程入门
- 9.1.1 TCP
- 9.1.2 UDP
- 9.2 IP地址封装
- 9.3 套接字(Socket)编程
- 9.3.1 什么是套接字(Socket)
- 9.3.2 套接字(Socket)通讯的过程
- 9.3.3 客户端套接字
- 9.3.4 服务器端套接字
- 9.3.5 开发Socket
- 9.4 数据报编程
- 9.4.1 DatagramPacket类
- 9.4.2 DatagramSocket类
- 习题九
- 第10章 JDBC数据库编程
- 10.1 JDBC入门
- 10.1.1 JDBC概述
- 10.1.2 JDBC的类与接口
- 10.1.3 JDBC实现原理
- 10.1.4 JDBC驱动程序分类
- 10.2 JDBC开发
- 10.2.1 数据库连接的主要步骤
- 10.2.2 加载JDBC驱动程序
- 10.2.3 建立一个数据库的连接
- 10.2.4 创建一个statement
- 10.2.5 执行SQL语句
- 10.2.6 处理结果
- 10.2.7 关闭连接
- 10.3 操作数据库
- 10.3.1 创建数据库和表
- 10.3.2 添加数据
- 10.3.3 查询数据
- 10.3.4 修改数据
- 10.3.5 删除数据
- 10.4 批处理
- 10.4.1 Statement批处理
- 10.4.2 PreparedStatement批处理
- 10.5 JDBC元数据
- 10.5.1 元数据概述
- 10.5.2 数据库的元数据
- 10.5.3 结果集的元数据
- 10.6 JDBC事务管理
- 10.6.1 事务概述
- 10.6.2 提交和回滚
- 习题十
- 第11章 综合项目实训——俄罗斯方块
- 任务一 面向对象的分析与设计
- 【任务描述】
- 【任务分析】
- 【任务实施】
- 【任务小结】
- 任务二 主体框架搭建
- 【任务描述】
- 【任务分析】
- 【任务实施】
- 【任务小结】
- 任务三 方块产生与自动下落
- 【任务描述】
- 【任务分析】
- 【任务实施】
- 【任务小结】
- 任务四 方块的移动与显示
- 【任务描述】
- 【任务分析】
- 【任务实施】
- 【任务小结】
- 任务五 障碍物的生成与消除
- 【任务描述】
- 【任务分析】
- 【任务实施】
- 【任务小结】
- 任务六 游戏结束
- 【任务描述】
- 【任务分析】
- 【任务实施】
- 【任务小结】
FAQ
Is this book suitable for someone who has never programmed before?
Which Java version is the code in the book based on?
What level can I reach after studying this book?
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
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.
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, 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.
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.
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.
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.