Beginning Java 7

0
(0)

Beginning Java 7
 

  • Author:Jeff Friesen
  • Length: 920 pages
  • Edition: 1
  • Publisher: Apress
  • Publication Date: 2011-11-23
  • ISBN-10: 1430239093
  • ISBN-13: 9781430239093
  • Sales Rank: #4092232 (See Top 100 Books)
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon


    Book Description

    Beginning Java 7 guides you through this language and a huge assortment of platform APIs according to the following table of contents:

    Chapter  1: Getting Started with Java
    Chapter  2: Discovering Classes and Objects
    Chapter  3: Exploring Advanced Language Features
    Chapter  4: Touring Language APIs
    Chapter  5: Collecting Objects
    Chapter  6: Touring Additional Utility APIs
    Chapter  7: Creating and Enriching Graphical User Interfaces
    Chapter  8: Interacting with Filesystems
    Chapter  9: Interacting with Networks and Databases
    Chapter 10: Parsing, Creating, and Transforming XML Documents
    Chapter 11: Working with Web Services
    Chapter 12: Java 7 Meets Android
    Appendix A: Solutions to Exercises
    Appendix B: Scripting API and Dynamically Typed Language Support
    Appendix C: Odds and Ends
    Appendix D: Applications Gallery

    Chapter 1 introduces you to Java and begins to cover the Java language by focusing on fundamental concepts such as comments, identifiers, variables, expressions, and statements.

    Chapter 2 continues to explore this language by presenting all of its features for working with classes and objects. You learn about features related to class declaration and object creation, encapsulation, information hiding, inheritance, polymorphism, interfaces, and garbage collection.

    Chapter 3 focuses on the more advanced language features related to nested classes, packages, static imports, exceptions, assertions, annotations, generics, and enums. Additional chapters will introduce you to the few features not covered in Chapters 1 through 3.

    Chapter 4 largely moves away from covering language features (although it does introduce class literals and strictfp) while focusing on language-oriented APIs. You learn about Math, StrictMath, Package, Primitive Type Wrapper Classes, Reference, Reflection, String, StringBuffer and StringBuilder, Threading, BigDecimal, and BigInteger in this chapter.

    Chapter 5 begins to explore Java’s utility APIs by focusing largely on the Collections Framework. However, it also discusses legacy collection-oriented APIs and how to create your own collections.

    Chapter 6 continues to focus on utility APIs by presenting the concurrency utilities along with the Objects and Random classes.

    Chapter 7 moves you away from the command-line user interfaces that appear in previous chapters and toward graphical user interfaces. You first learn about the Abstract Window Toolkit foundation, and then explore the Java Foundation Classes in terms of Swing and Java 2D. Appendix C explores Accessibility and Drag and Drop.

    Chapter 8 explores filesystem-oriented I/O in terms of the File, RandomAccessFile, stream, and writer/reader classes. New I/O is covered in Appendix C.

    Chapter 9 introduces you to Java’s network APIs, such as sockets. It also introduces you to the JDBC API for interacting with databases.

    Chapter 10 dives into Java’s XML support by first presenting an introduction to XML (including DTDs and schemas). It next explores the SAX, DOM, StAX, XPath, and XSLT APIs. It even briefly touches on the Validation API. While exploring XPath, you encounter namespace contexts, extension functions and function resolvers, and variables and variable resolvers.

    Chapter 11 introduces you to Java’s support for SOAP-based and RESTful web services. In addition to providing you with the basics of these web service categories, Chapter 11 presents some advanced topics, such as working with the SAAJ API to communicate with a SOAP-based web service without having to rely on JAX-WS. You will appreciate having learned about XML in Chapter 10 before diving into this chapter.

    Chapter 12 helps you put to use some of the knowledge you’ve gathered in previous chapters by showing you how to use Java to write an Android app’s source code. This chapter introduces you to Android, discusses its architecture, shows you how to install necessary tools, and develops a simple app.

    Appendix A presents the solutions to the programming exercises that appear near the end of Chapters 1 through 12.

    Appendix B introduces you to Java’s Scripting API along with Java 7’s support for dynamically typed languages.

    Appendix C introduces you to additional APIs and architecture topics: Accessibility, ByteArrayOutputStream and ByteArrayInputStream, classloaders, Console, Desktop, Drag and Drop, Dynamic Layout, Extension Mechanism and ServiceLoader, File Partition-Space, File Permissions, Formatter, Image I/O, Internationalization, Java Native Interface, NetworkInterface and InterfaceAddress, New I/O (including NIO.2), PipedOutputStream and PipedInputStream, Preferences, Scanner, Security, Smart Card, Splash Screen, Stream Tokenizer, StringTokenizer, SwingWorker, System Tray, Timer and TimerTask, Tools and the Compiler API, Translucent and Shaped Window, and XML Digital Signature.

    Appendix D presents a gallery of significant applications that demonstrate various aspects of Java.

    Unfortunately, there are limits to how much knowledge can be crammed into a print book. For this reason, Appendixes A, B, C, and D are not included in this book’s pages. Instead, these appendixes are freely distributed as PDF files. Appendixes A and B are bundled with the book’s associated code file at the Apress website (http://www.apress.com).

    Appendixes C and D are bundled with their respective code files on my TutorTutor.ca website at http://tutortutor.ca/cgi-bin/makepage.cgi?/books/bj7. Appendixes C and D are “living documents” in that I’ll occasionally add new material to them. For example, I plan to expand Appendix C by also covering Java Naming and Directory Interface, Java Sound, Remote Method Invocation and Corba, Robot, Runtime and Process, Swing Timer, and many other APIs/architecture topics (including a complete tour of Swing components). Of course, it will take time to write about these topics so don’t expect all of them to appear at once — they will slowly emerge in coming months (although smaller topics such as Robot will emerge much faster).

    What you’ll learn

    • The entire Java language, including Java 7-specific features such as switch on string, try-with-resources, final rethrow, multicatch, and SafeVarargs
    • A huge assortment of Java 7 APIs, beginning with those APIs oriented toward the language itself, and including Java 7-specific APIs such as the Fork/Join Framework, Objects, JLayer, and NIO.2
    • Various Java 7 tools, starting with the javac compiler and java application launcher
    • How to create user interfaces, working with web services, and a whole lot more
    • The basics of getting started with Android app development

    Who this book is for

    This book targets the following groups of developers:

    • Newcomers, skilled (to some degree) in other programming languages but with no previous exposure to Java
    • Intermediate Java developers, skilled in the fundamentals of Java prior to Java 7 and looking to increase their understanding of Java 7 language/API changes
    • All developers looking beyond standard Java, who want to leverage Java 7 to create mobile apps via Android
    • Even advanced Java developers may find a few items of interest

    Table of Contents

    1. Getting Started with Java
    2. Discovering Classes and Objects
    3. Exploring Advanced Language Features
    4. Touring Language and Utility APIs
    5. Collecting Objects
    6. Touring Additional Utility APIs
    7. Creating and Enriching Graphical User Interfaces
    8. Interacting with Filesystems
    9. Interacting with Networks and Databases
    10. Parsing, Creating, and Transforming XML Documents
    11. Working with Web Services
    12. Java 7 Meets Android

    中文:

    书名:开始使用Java 7

    开始使用Java 7 根据以下内容列表,指导您了解该语言和大量的平台API:

    Chapter  1: Java入门
    Chapter  2: Discovering Classes and Objects
    第3章:探索高级语言功能
    第四章:旅游语言API
    Chapter  5: 收集对象
    Chapter  6: Touring Additional Utility APIs
    第7章:创建和丰富图形用户界面
    Chapter  8: 与文件系统交互
    第9章:与网络和数据库互动
    Chapter 10: Parsing, Creating, and Transforming XML Documents
    Chapter 11: 使用Web服务
    Chapter 12: Java 7 Meets Android
    附录A:习题解答
    附录B:脚本API和动态类型语言支持
    附录C:零星数据
    附录D:应用程序库

    第1章向您介绍Java,并通过关注注释、标识符、变量、表达式和语句等基本概念开始介绍Java语言。

    第2章继续探讨这种语言,介绍了它处理类和对象的所有特性。您将了解与类声明和对象创建、封装、信息隐藏、继承、多态、接口和垃圾回收相关的特性。

    第3章重点介绍与嵌套类、包、静态导入、异常、断言、注释、泛型和枚举相关的更高级的语言特性。其他章节将向您介绍第1章至第3章中未涵盖的几个功能。

    第4章主要不涉及语言特性(尽管它确实介绍了类文字和严格的tfp),而是专注于面向语言的API。在本章中,您将了解Math、StrictMath、Package、Primitive Type包装类、Reference、反射、字符串、StringBuffer和StringBuilder、线程、BigDecimal和BigInteger。

    第5章主要集中在集合框架上,开始探索Java的实用API。然而,它也讨论了遗留的面向集合的API以及如何创建您自己的集合。

    Chapter 6 continues to focus on utility APIs by presenting the concurrency utilities along with the Objects and Random classes.

    第7章将使您远离前面章节中出现的命令行用户界面,而转向图形用户界面。首先学习抽象窗口工具包基础,然后探索Swing和Java 2D方面的Java基础类。附录C探讨了可访问性和拖放。

    第8章从文件、随机访问文件、流和写入器/读取器类的角度探讨了面向文件系统的I/O。附录C中介绍了新的I/O。

    第9章向您介绍了Java的网络API,如套接字。它还向您介绍了用于与数据库交互的JDBC API。

    第10章首先介绍了XML(包括DTD和模式),深入探讨了Java对XML的支持。接下来探讨SAX、DOM、StAX、XPath和XSLTAPI。它甚至简单地提到了验证API。在探索XPath时,您会遇到名称空间上下文、扩展函数和函数解析器以及变量和变量解析器。

    第11章向您介绍了Java对基于SOAP和REST风格的Web服务的支持。除了为您提供这些Web服务类别的基础知识外,第11章还介绍了一些高级主题,例如使用SAAJ API与基于SOAP的Web服务通信,而不必依赖JAX-WS。在深入了解本章之前,您将很高兴已经在第10章中了解了XML。

    第12章向你展示了如何使用Java编写Android应用程序的源代码,从而帮助你运用上一章中收集的一些知识。本章向您介绍Android,讨论其架构,向您展示如何安装必要的工具,并开发一个简单的应用程序。

    附录A提供了在第1章到第12章末尾出现的编程练习的解决方案。

    附录B向您介绍了Java的脚本API以及Java 7对动态类型语言的支持。

    附录C向您介绍了其他API和体系结构主题:可访问性、ByteArrayOutputStream和ByteArrayInputStream、类加载器、控制台、桌面、拖放、动态布局、扩展机制和服务加载器、文件分区空间、文件权限、格式化程序、图像I/O、国际化、Java本地接口、网络接口和接口地址、新I/O(包括NIO.2)、PiedOutputStream和PipeInputStream、首选项、扫描器、安全性、智能卡、开机屏幕、Stream Tokenizer、StringTokenizer、SwingWorker、系统托盘、定时器和定时器任务、工具和编译器、半透明和成形窗口以及XML数字签名。

    附录D展示了一系列重要的应用程序,它们演示了Java的各个方面。

    不幸的是,一本纸质书可以塞进多少知识是有限度的。因此,附录A、B、C和D不包括在本书的页面中。相反,这些附录以PDF文件的形式自由分发。附录A和B与该书的相关代码文件捆绑在一起,位于APRESS网站(http://www.apress.com).

    在我的TutorTutor.ca网站http://tutortutor.ca/cgi-bin/makepage.cgi?/books/bj7.上,附录C和D与它们各自的代码文件捆绑在一起附录C和D是活生生的文件,因为我会偶尔增加新的材料。例如,我计划扩展附录C,涵盖Java命名和目录接口、Java声音、远程方法调用和Corba、Robot、运行时和进程、Swing Timer和许多其他API/体系结构主题(包括完整的Swing组件之旅)。当然,写这些主题需要时间,所以不要指望所有的主题都会同时出现,它们会在接下来的几个月里慢慢出现(尽管像机器人这样的较小的主题会出现得快得多)。

    你会学到什么

    • 整个Java语言,包括特定于Java 7的特性,如打开字符串、使用资源进行尝试、最终重新抛出、多通道和安全变量
    • 大量的Java 7 API,从那些面向语言本身的API开始,包括特定于Java 7的API,如Fork/Join框架、对象、JLayer和NIO。2
    • 各种Java 7工具,从javac编译器和Java应用程序启动器开始
    • 如何创建用户界面、使用Web服务以及更多内容
    • Android应用程序开发入门的基础知识

    Who this book is for

    本书面向以下开发人员群体:

    • 新手,熟练(在一定程度上)掌握其他编程语言,但以前没有接触过Java
    • 中级Java开发人员,精通Java 7之前的Java基础知识,希望增加对Java 7语言/API更改的了解
    • 所有希望利用Java 7通过Android创建移动应用程序的标准Java以外的开发人员
    • 即使是高级Java开发人员也可能会发现一些有趣的项目

    目录表

    1. Java入门
    2. Discovering Classes and Objects
    3. 探索高级语言功能
    4. 旅游语言和实用程序API
    5. 收集对象
    6. Touring Additional Utility APIs
    7. Creating and Enriching Graphical User Interfaces
    8. 与文件系统交互
    9. Interacting with Networks and Databases
    10. Parsing, Creating, and Transforming XML Documents
    11. 使用Web服务
    12. Java 7与Android相遇
  • 下载电子版:下载地址
  • 购买纸质版:亚马逊商城

    点击星号评分!

    平均分 0 / 5. 投票数: 0

    还没有投票!请为他投一票。

  • 推荐阅读

    评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册