Learn Java for Android Development (Paperback)
暫譯: 學習 Java 進行 Android 開發 (平裝本)

Jeff Friesen

買這商品的人也買了...

相關主題

商品描述

Android development is hot, and many programmers are interested in joining the fun. However, because this technology is based on Java, you should first obtain a solid grasp of the Java language and its foundational APIs to improve your chances of succeeding as an Android app developer. After all, you will be busy learning the architecture of an Android app, the various Android-specific APIs, and Android-specific tools. If you do not already know Java fundamentals, you will probably end up with a massive headache from also having to quickly cram those fundamentals into your knowledge base.  

Learn Java for Android Development
teaches programmers of any skill level the essential Java language and foundational Java API skills that must be learned to improve the programmer’s chances of succeeding as an Android app developer. Each of the book’s 10 chapters provides an exercise section that gives you the opportunity to reinforce your understanding of the chapter’s material. Answers to the book’s more than 300 exercises are provided in an appendix.

Once you complete this book, you will be ready to dive into Android, and you can start that journey by obtaining a copy of Beginning Android 2.  

What you’ll learn

  • The Java language: This book provides complete coverage of nearly every pre-Java version 7 language feature (native methods are briefly mentioned but not formally covered). Starting with those features related to classes and objects, you progress to object-oriented features related to inheritance, polymorphism, and interfaces. You then explore the advanced language features for nested types, packages, static imports, exceptions, assertions, annotations, generics, and enums. Continuing, you investigate strictfp, class literals, synchronized, volatile, the enhanced for loop statement, autoboxing/unboxing, and transient fields. The book also briefly presents most (if not all) of Java version 7’s language features, although not much is said about closures or modules (which were not finalized at the time of writing).
  • Java APIs: In addition to Object and APIs related to exceptions, you explore Math, StrictMath, BigDecimal, BigInteger, Package, Boolean, Character, Byte, Short, Integer, Long, Float, Double, Number, the References API, the Reflection API, String, StringBuffer, System, the Threading API, the collections framework, the concurrency utilities, the internationalization APIs, the Preferences API, Random, the Regular Expressions API, File, RandomAccessFile, stream classes, and writer/reader classes. You will also get a tiny taste of Swing in the context of internationalization.
  • Tools: You will learn how to use the JDK’s javac (compiler), java (application launcher), javadoc (Java documentation generator), and jar (Java archive creator, updater, and extractor) tools. You will also receive an introduction to the NetBeans and Eclipse integrated development environments. Although you can develop Android apps without NetBeans or Eclipse, working with these IDEs is much more pleasant.

Who this book is for

This book is for any programmer (including existing Java programmers and Objective-C [iPhone/iPad] programmers) of any skill level who needs to obtain a solid understanding of the Java language and foundational Java APIs before jumping into Android app development.

Table of Contents

  1. Getting Started with Java
  2. Learning Language Fundamentals
  3. Learning Object-Oriented Language Features
  4. Mastering Advanced Language Features, Part 1
  5. Mastering Advanced Language Features, Part 2
  6. Exploring the Basic APIs, Part 1
  7. Exploring the Basic APIs, Part 2
  8. Discovering the Collections Framework
  9. Discovering Additional Utility APIs
  10. Performing I/O
  11. Solutions to Exercises

商品描述(中文翻譯)

Android 開發非常熱門,許多程式設計師都對參與其中感興趣。然而,由於這項技術是基於 Java,因此您應該首先牢牢掌握 Java 語言及其基礎 API,以提高您作為 Android 應用程式開發者成功的機會。畢竟,您將忙於學習 Android 應用程式的架構、各種 Android 特有的 API 以及 Android 特有的工具。如果您尚未了解 Java 基礎,您可能會因為需要快速將這些基礎知識塞進您的知識庫而感到頭痛。

學習 Java 以進行 Android 開發
教導任何技能水平的程式設計師必須學習的基本 Java 語言和基礎 Java API 技能,以提高程式設計師作為 Android 應用程式開發者成功的機會。本書的每一章都有練習部分,讓您有機會加強對該章節內容的理解。書中超過 300 道練習的答案在附錄中提供。

完成本書後,您將準備好深入了解 Android,您可以通過獲得一本 Beginning Android 2 開始這段旅程。


您將學到什麼


  • Java 語言:本書幾乎全面涵蓋了所有 Java 7 之前的語言特性(本土方法簡要提及但未正式涵蓋)。從與類別和物件相關的特性開始,您將進入與繼承、多型和介面相關的物件導向特性。接著,您將探索嵌套類型、包、靜態匯入、例外、斷言、註解、泛型和列舉的進階語言特性。然後,您將研究 strictfp、類別字面量、同步、易失性、增強的 for 迴圈語句、自動裝箱/拆箱和瞬態欄位。本書還簡要介紹了 Java 7 的大多數(如果不是全部)語言特性,儘管對於閉包或模組(在撰寫時尚未最終確定)則沒有太多討論。

  • Java API:除了 Object 和與例外相關的 API 外,您還將探索 Math、StrictMath、BigDecimal、BigInteger、Package、Boolean、Character、Byte、Short、Integer、Long、Float、Double、Number、References API、Reflection API、String、StringBuffer、System、Threading API、集合框架、並發工具、國際化 API、Preferences API、Random、正則表達式 API、File、RandomAccessFile、流類別以及寫入/讀取類別。您還將在國際化的背景下略微接觸到 Swing。

  • 工具:您將學習如何使用 JDK 的 javac(編譯器)、java(應用程式啟動器)、javadoc(Java 文件生成器)和 jar(Java 壓縮檔創建者、更新者和提取器)工具。您還將獲得 NetBeans 和 Eclipse 整合開發環境的介紹。雖然您可以在沒有 NetBeans 或 Eclipse 的情況下開發 Android 應用程式,但使用這些 IDE 會更加愉快。


本書適合誰


本書適合任何程式設計師(包括現有的 Java 程式設計師和 Objective-C [iPhone/iPad] 程式設計師)無論技能水平如何,都需要在進入 Android 應用程式開發之前,獲得對 Java 語言和基礎 Java API 的扎實理解。


目錄


  1. Java 入門

  2. 學習語言基礎

  3. 學習物件導向語言特性

  4. 掌握進階語言特性,第 1 部分

  5. 掌握進階語言特性,第 2 部分

  6. 探索基本 API,第 1 部分

  7. 探索基本 API,第 2 部分

  8. 發現集合框架

  9. 發現其他實用 API

  10. 執行 I/O

  11. 練習解答