新書推薦:
《
史铁生:听风八百遍,才知是人间(2)
》
售價:HK$
55.8
《
量子网络的构建与应用
》
售價:HK$
109.8
《
拍电影的热知识:126部影片里的创作技巧(全彩插图版)
》
售價:HK$
109.8
《
大唐名城:长安风华冠天下
》
售價:HK$
87.4
《
情绪传染(当代西方社会心理学名著译丛)
》
售價:HK$
88.5
《
中国年画 1950-1990 THE NEW CHINA: NEW YEAR PICTURE 英文版
》
售價:HK$
236.0
《
革命与反革命:社会文化视野下的民国政治(近世中国丛书)
》
售價:HK$
93.2
《
画楼:《北洋画报》忆旧(年轮丛书)
》
售價:HK$
337.5
|
內容簡介: |
本书系统介绍Java程序设计的基础知识、开发环境与开发工具。全书共分12章,内容包括Java语言的概述、Java语言的基本语法、程序流程控制语句、面向对象编程的基础、异常的概念和处理、多线程处理机制、集合框架、Java输入输出(IO)处理、JDBC数据库编程、Java网络编程和Swing程序设计,*后介绍Java常用的类库和开发Java程序的实战项目。本书从初学者的角度出发,以丰富的实例、通俗易懂的语言,详细介绍Java开发中重点用到的多种技术,使读者快速掌握Java程序设计的方法。
|
目錄:
|
前 言
第1章 开始Java之旅 ··································1
1.1 无处不在的Java ············································1
1.2 Java为何受大家喜爱 ············································2
1.3 Java的目标 ········································3
1.4 Java开发环境的搭建 ············································3
1.4.1 JDK的下载与安装 ···································3
1.4.2 Java开发环境配置 ···································5
1.5 Java程序运行的原理 ············································6
1.6 Java开发工具Eclipse ···········································6
1.6.1 Eclipse的安装与启动 ···········································6
1.6.2 Eclipse编写Java程序的流程·········································8
1.7 要点总结 ··········································12
1.8 练习题 ··············································12
第2章 Java语言基础 ·····················13
2.1 Java程序的基本组成 ··········································13
2.2 Java语言的数据类型 ··········································16
2.2.1 整数类型 ·················································16
2.2.2 浮点类型 ·················································17
2.2.3 字符类型 ·················································17
2.2.4 布尔类型 ·················································17
2.2.5 基本数据类型的默认值 ···········································17
2.2.6 类型转换 ·················································17
2.3 运算符和表达式 ··············································19
2.3.1 赋值运算符 ·············································19
2.3.2 算术运算符 ·············································19
2.3.3 位运算符 ·················································20
2.3.4 关系运算符 ·············································21
2.3.5 三元运算符 ·············································21
2.3.6 运算符优先级 ·········································22
2.4 流程控制语句 ··································22
2.4.1 选择语句 ·················································22
2.4.2 循环语句 ·················································27
2.5 数组与方法 ······································32
2.5.1 一维数组 ·················································32
2.5.2 二维数组 ·················································35
2.5.3 方法 ·····································37
2.6 要点总结 ··········································40
2.7 编程练习 ········································
|
內容試閱:
|
Java是Sun公司推出的一种程序设计语言,拥有面向对象、跨平台、分布式、高性能、可移植等优点和特性,是目前广泛使用的编程语言之一。Java主要有Java SE(Java标准版本)、Java EE(Java企业版本)和Java ME(Java移动电子设备版本)三个版本。其中,Java SE是Java语言的标准版,包含Java基本语法、面向对象程序设计、多线程、数据集合、输入和输出、Swing程序设计、网络编程及数据库操作等。
本书通过通俗易懂的语言和实用生动的例子,系统地介绍了Java SE程序设计的基础知识、开发环境与开发工具,并且在每一章的后面都提供习题,方便读者检查学习效果,还提供了部分上机实验,使读者快速掌握Java SE程序的开发技能。
全书共分12章,具体内容如下:
第1章主要介绍Java技术的相关概念及如何开发Java程序,包括Java语言的概述、Java开发环境的搭建、开发工具Ecplise的使用。
第2章主要介绍Java语言的基础知识,包括数据类型、运算符、控制流程、数组和函数等。
第3章主要介绍面向对象编程的基础,包括Java语言中的类、对象、包、接口、类的继承、多态和封装等。
第4章介绍异常处理机制,包括异常类及分类、异常处理机制、自定义异常等。
第5章介绍线程技术,包括线程的创建、状态、调度、优先级和线程同步等。
第6章主要介绍Java程序设计中的集合类,包括List集合、Set集合、Map集合等。
第7章主要介绍Java的输入输出功能,包括文件操作类、字节流、字符流和对象序列化等。
第8章主要介绍Java的数据库操作,包括JDBC概述、JDBC中常用的接口、连接数据库、操作数据库和应用JDBC事务。
第9章主要介绍Java的网络编程,通过聊天程序讲解网络编程的相关技术。
第10章主要介绍Java的图形用户界面编程,讲解Swing的编程技术和实现。
第11 章主要介绍Java 常用的类库,包括StringBuffer 类、Runtime 类、System 类、Math 类、Random 类等。
第12 章通过实战演练让读者了解和掌握Java 程序开发的过程。
本书资源可以登录机械工业出版社华章公司的网站(www.hzbook.com)下载,搜索到本书,然后在页面上的“资源下载”模块下载即可。
本书由唐山师范学院的张洪波、丁卫颖、郑铮老师共同编写完成,第1~3、7、8、10、11 章由张洪波编写,第4 ~ 6 章由丁卫颖编写,第9 章和第12 章由郑铮编写。同时,对参与文字录入及书中代码编写、调试工作的人员表示衷心的感谢!如果读者对本书有疑问或建议,可发送电子邮件至booksaga@126.com。
因为要熟练掌握Java 语言必须进行大量的上机练习,所以无论是否安排上机实验,读者都应该独立、认真地完成本书中的所有示例和实验。本书适合Java 初学者和计算机及相关专业的学生使用。
由于编写时间仓促和作者水平有限,书中错误和不妥之处敬请读者批评指正。
编 者
2018 年9 月
|
|