电子工业出版社有限公司店铺主页二维码
电子工业出版社有限公司
电子工业出版社有限公司有赞官方供货商,为客户提供一流的知识产品及服务。
微信扫描二维码,访问我们的微信店铺

Java程序设计与应用

37.40
运费: 免运费
Java程序设计与应用 商品图0
Java程序设计与应用 商品图1
Java程序设计与应用 商品缩略图0 Java程序设计与应用 商品缩略图1

商品详情

书名:Java程序设计与应用
定价:49.9
ISBN:9787121408021
作者:无
版次:第1版
出版时间:2021-03

内容提要:
本书介绍了Java 程序设计的基础知识及其编程方法,包括Java 编程基础、面向对象的思想及概念、常见字符串与类的使用、Java 的集合框架、文件和数据流、数据库、GUI 及事件响应、多线程和Java 网络编程等内容。本书以通俗易懂的语言介绍了Java 面向对象编程的思想和编程技巧,内容丰富,结构合理,并且提供了丰富的例程。本书既可以作为高等院校各专业的基础教材,也可以作为使用Java 的工程技术人员和科技工作者的自学参考书。



作者简介:
郭俊,男,成都理工大学工程技术学院副教授。从事方向为计算机应用、信息技术教学。担任四川省普通高校应用型本科示范课程建设项目"面向对象编程”课程负责人,成都理工大学工程技术学院精品在线课程"面向对象编程”课程负责人。

目录:
目 录
第1 章 Java 概述························································································1
1.1 Java 的产生与发展···········································································1
1.2 Java 的特点·····················································································1
1.3 JVM 虚拟机····················································································2
1.4 垃圾回收机制··················································································3
1.5 Java 开发环境··················································································3
1.5.1 什么是JDK ···········································································3
1.5.2 JDK 的安装设置·····································································3
1.5.3 JDK 目录介绍········································································6
1.6 **个Java 程序··············································································6
1.6.1 命令行方式···········································································6
1.6.2 使用Eclipse 集成开发环境························································7
1.7 Java 编程规范···············································································.10
1.8 上机实验·····················································································.10
1.9 本章小结·····················································································.11
习题·································································································.11
第2 章 Java 语言基础···············································································.12
2.1 基础语法·····················································································.12
2.1.1 标识符··············································································.12
2.1.2 关键字··············································································.12
2.2 数据类型·····················································································.12
2.2.1 基本数据类型·····································································.13
2.2.2 变量的类型转换··································································.15
2.3 Java 中的运算符············································································.15
2.3.1 算术运算符········································································.16
2.3.2 赋值运算符········································································.17
2.3.3 关系运算符········································································.17
2.3.4 逻辑运算符········································································.18
2.3.5 位运算符···········································································.18
2.3.6 运算符的优先级··································································.19
·VI ·
2.4 流程控制·····················································································.19
2.4.1 顺序结构···········································································.20
2.4.2 选择结构···········································································.20
2.4.3 循环结构···········································································.24
2.4.4 跳转语句···········································································.27
2.5 数组···························································································.28
2.5.1 数组的概念········································································.28
2.5.2 二维数组···········································································.31
2.6 上机实验·····················································································.33
2.7 本章小结·····················································································.35
习题·································································································.35
第3 章面向对象 ·····················································································.36
3.1 面向对象的概念············································································.36
3.2 类与对象·····················································································.36
3.2.1 类和对象···········································································.36
3.2.2 类的定义···········································································.37
3.2.3 对象的创建和使用·······························································.38
3.2.4 构造方法···········································································.40
3.2.5 this 关键字·········································································.42
3.3 参数传值·····················································································.44
3.4 static 关键字·················································································.45
3.5 基本类型的包装类·········································································.47
3.6 认识异常·····················································································.48
3.6.1 异常的概念········································································.48
3.6.2 异常的分类········································································.50
3.6.3 异常处理机制·····································································.51
3.6.4 finally 语句·········································································.51
3.6.5 throws 语句·········································································.53
3.6.6 throw 语句··········································································.53
3.6.7 自定义异常········································································.54
3.7 上机实验·····················································································.55
3.8 本章小结·····················································································.57
习题·································································································.57
第4 章继承 ···························································································.58
4.1 继承的概念(子类与父类) ····························································.58
4.2 子类对象的创建············································································.59
4.3 继承的原则··················································································.60
·VII·
4.4 成员变量的隐藏和方法重写····························································.60
4.4.1 成员变量的隐藏··································································.60
4.4.2 方法的重写(Override)························································.60
4.5 super 关键字················································································.62
4.6 final 关键字·················································································.64
4.7 方法重载与多态············································································.65
4.7.1 方法的重载········································································.65
4.7.2 多态的用法········································································.66
4.8 包······························································································.68
4.9 访问权限控制···············································································.68
4.9.1 私有变量和私有方法····························································.69
4.9.2 公共变量和公共方法····························································.69
4.9.3 受保护的成员变量和成员方法················································.69
4.9.4 友好的成员变量和成员方法···················································.70
4.9.5 访问级别控制·····································································.70
4.10 上机实验···················································································.70
4.11 本章小结···················································································.72
习题·································································································.72
第5 章抽象类与接口 ···············································································.75
5.1 抽象类与抽象方法·········································································.75
5.2 接口的概念与实现·········································································.76
5.3 接口回调·····················································································.78
5.4 接口与多态··················································································.80
5.5 接口与抽象类的比较······································································.81
5.6 上机实验·····················································································.82
5.7 本章小结·····················································································.82
习题·································································································.82
第6 章内部类 ························································································.85
6.1 内部类的创建和使用······································································.85
6.2 内部类的作用···············································································.86
6.3 内部类的分类···············································································.90
6.3.1 匿名内部类········································································.90
6.3.2 局部内部类········································································.91
6.3.3 静态内部类········································································.92
6.4 上机实验·····················································································.93
6.5 本章小结·····················································································.94
习题·································································································.94
·VI II·
第 7 章字符串与常用类 ············································································.97
7.1 字符串························································································.97
7.1.1 String 构造函数···································································.97
7.1.2 字符串的常用方法·······························································.98
7.1.3 字符串应用示例··································································.98
7.1.4 JDK 的帮助文档··································································.99
7.2 字符串解析··················································································102
7.2.1 正则表达式········································································102
7.2.2 Patterm 类和Matcher 类·························································103
7.3 StringBuffer 类和StringBuilder 类······················································105
7.4 常用类························································································107
7.4.1 Math 类·············································································107
7.4.2 Random 类··········································································108
7.4.3 Date 类和Calendar 类····························································109
7.4.4 DateFormat 类和SimpleDateFormat 类·······································110
7.5 上机实验·····················································································111
7.6 本章小结·····················································································112
习题·································································································112
第8 章集合与泛型 ··················································································113
8.1 集合框架概述···············································································113
8.2 List 接口·····················································································113
8.2.1 List 接口简介······································································113
8.2.2 Iterator 接口········································································117
8.3 Set 接口······················································································118
8.3.1 Set 接口简介·······································································118
8.3.2 HashSet 集合·······································································118
8.3.3 TreeSet 集合·······································································121
8.4 Map 接口····················································································121
8.4.1 HashMap 类········································································122
8.4.2 Properties 类·······································································123
8.5 泛型···························································································124
8.5.1 泛型集合···········································································125
8.5.2 使用泛型类声明对象····························································126
8.6 上机实验·····················································································127
8.7 本章小结·····················································································128
习题·································································································128
·IX·
第 9 章输入输出流 ··················································································130
9.1 文件类························································································130
9.1.1 创建File 类对象··································································130
9.1.2 获取文件或目录的信息·························································130
9.2 字节流和字符流············································································132
9.2.1 字节流··············································································133
9.2.2 字符流··············································································135
9.3 文件流························································································137
9.3.1 FileInputStream 类和FileOutputStream 类···································138
9.3.2 文件字符流········································································140
9.4 缓冲流························································································142
9.4.1 字节缓冲流········································································142
9.4.2 字符缓冲流········································································144
9.5 转换流························································································145
9.6 随机读写文件类············································································146
9.7 上机实验·····················································································148
9.8 本章小结·····················································································149
习题·································································································149
第10 章图形用户界面 ··············································································150
10.1 Java Swing 概述···········································································150
10.2 Swing 容器·················································································150
10.2.1 JFrame 容器······································································152
10.2.2 对话框·············································································153
10.2.3 JPanel 面板·······································································155
10.3 布局管理器················································································156
10.3.1 BorderLayout 布局管理器·····················································156
10.3.2 FlowLayout 布局管理器·······················································157
10.3.3 GridLayout 布局管理器························································159
10.4 事件处理···················································································160
10.4.1 事件处理模型····································································160
10.4.2 事件类·············································································162
10.4.3 适配器类··········································································165
10.5 Swing 组件·················································································165
10.5.1 文本组件··········································································166
10.5.2 按钮组件··········································································169
10.6 菜单组件···················································································174
10.6.1 下拉菜单··········································································174
·X·
10.6.2 弹出式菜单·······································································175
10.7 上机实验···················································································177
10.8 本章小结···················································································177
习题·································································································178
第11 章JDBC 编程··················································································179
11.1 JDBC 概述·················································································179
11.2 JDBC 常用的接口和类··································································180
11.2.1 Driver 类··········································································180
11.2.2 DriverManager 类································································181
11.2.3 Connection 接口·································································183
11.2.4 Statement 接口···································································183
11.2.5 PreparedStatement 接口·························································184
11.2.6 ResultSet 接口····································································185
11.3 JDBC 程序示例···········································································186
11.4 数据库的基本操作·······································································191
11.5 事务处理···················································································193
11.5.1 事务概述··········································································193
11.5.2 JDBC 处理事务··································································194
11.6 上机实验···················································································197
11.7 本章小结···················································································197
习题·································································································198
第12 章Java 多线程················································································200
12.1 线程概述···················································································200
12.1.1 进程················································································200
12.1.2 线程················································································201
12.2 创建线程···················································································202
12.2.1 继承Thread 类···································································202
12.2.2 实现Runnable 接口·····························································205
12.2.3 两种实现多线程方式的区别··················································206
12.3 Java 中的线程·············································································209
12.3.1 线程的生命周期·································································209
12.3.2 线程调度与优先级······························································214
12.4 线程的同步················································································216
12.4.1 同步代码块·······································································216
12.4.2 同步方法··········································································219
12.4.3 死锁················································································220
12.5 线程交互···················································································224
·XI·
12.6 上机实验···················································································228
12.7 本章小结···················································································228
习题·································································································228
第13 章网络编程 ····················································································231
13.1 URL ·························································································231
13.1.1 URL 的构造方法································································231
13.1.2 获取URL 中的资源····························································232
13.2 InetAddress 类·············································································233
13.3 TCP 网络编程·············································································235
13.3.1 ServerSocket 类··································································235
13.3.2 Socket 类··········································································237
13.3.3 多线程的TCP 网络编程·······················································239
13.4 UDP 编程··················································································243
13.4.1 DatagramPacket 类······························································243
13.4.2 DatagramSocket 类······························································244
13.4.3 UDP 网络编程···································································245
13.5 广播数据报················································································247
13.6 上机实验···················································································250
13.7 本章小结···················································································250
习题·································································································250
参考文献··································································································253
电子工业出版社有限公司店铺主页二维码
电子工业出版社有限公司
电子工业出版社有限公司有赞官方供货商,为客户提供一流的知识产品及服务。
扫描二维码,访问我们的微信店铺

Java程序设计与应用

手机启动微信
扫一扫购买

收藏到微信 or 发给朋友

1. 打开微信,扫一扫左侧二维码

2. 点击右上角图标

点击右上角分享图标

3. 发送给朋友、分享到朋友圈、收藏

发送给朋友、分享到朋友圈、收藏

微信支付

支付宝

扫一扫购买

收藏到微信 or 发给朋友

1. 打开微信,扫一扫左侧二维码

2. 点击右上角图标

点击右上角分享图标

3. 发送给朋友、分享到朋友圈、收藏

发送给朋友、分享到朋友圈、收藏