The Java Tutorial : A Short Course on the Basics (Java Series) (4 PAP/CDR)

The Java Tutorial : A Short Course on the Basics (Java Series) (4 PAP/CDR)

  • ただいまウェブストアではご注文を受け付けておりません。 ⇒古書を探す
  • 製本 Paperback:紙装版/ペーパーバック版/ページ数 637 p.
  • 言語 ENG
  • 商品コード 9780321334206
  • DDC分類 005.133

Full Description


A hands-on guide to the Java programming language, The Java (TM) Tutorial, Fourth Edition is perfect for any developer looking for a proven path to proficiency with Java SE. This popular tutorial "from the Source" has been completely revised and updated to cover Version 6 of the Java Platform, Standard Edition.Written by members of the Java Software team at Sun Microsystems, this book uses a tested, interactive approach and features real-world problems that help you learn the Java platform by example.New to this edition are chapters on generics, collections, Java Web Start, the platform environment, and regular expressions. Key sections, including the Threads, I/O, Object-Oriented Programming Concepts, and Language Basics chapters have been completely rewritten to reflect reader feedback and to cover new features added to the Java SE 6 platform. A new appendix contains information on how to prepare for the Java Programming Language Certification exam.As with the previous editions, you will find clear explanations of the fundamentals of objects, classes, and data structures, as well as detailed coverage of exceptions, I/O, and threads. All of the popular features that made this book a classic have been retained, including convenient summaries at the end of each section and Questions and Exercises segments to help you practice what you learn.The accompanying CD-ROM is filled with valuable resources including the latest Java SE software (the JRE, JDK, Java API spec, and the guide documentation), the code samples from this book, and solutions to the questions and exercises.The Java (TM) Series is supported, endorsed, and authored by the creators of the Java technology at Sun Microsystems, Inc. It is the official place to go for complete, expert, and definitive information on Java technology. The books in this series provide the inside information you need to build effective, robust, and portable applications and applets. The Series is an indispensable resource for anyone targeting the Java (TM) platform.

Contents

Foreword xixPreface xxiChapter 1The Java Technology Phenomenon 11.2 The "Hello World!" Application 61.3 A Closer Look at the "Hello World!" Application 241.4 Common Problems (and Their Solutions) 271.5 Questions and Exercises: Getting Started 30Chapter 2: Object-Oriented Programming Concepts 332.1 What Is an Object? 332.2 What Is a Class? 352.3 What Is Inheritance? 372.4 What Is an Interface? 382.5 What Is a Package? 392.6 Questions and Exercises: Object-Oriented Programming Concepts 40Chapter 3: Language Basics 433.1 Variables 433.2 Operators 553.3 Expressions, Statements, and Blocks 663.4 Control Flow Statements 69Chapter 4: Classes and Objects 854.1 Classes 854.2 Objects 974.3 More on Classes 1064.4 Nested Classes 1224.5 Enum Types 1284.6 Annotations 132Chapter 5: Interfaces and Inheritance 1395.1 Interfaces 1395.2 Inheritance 147Chapter 6: Generics 1676.1 Introduction 1676.2 Generic Types 1696.3 Generic Methods and Constructors 1726.4 Bounded Type Parameters 1736.5 Subtyping 1756.6 Wildcards 1776.7 Type Erasure 1786.8 Summary of Generics 1796.9 Questions and Exercises: Generics 180Chapter 7: Packages 1837.1 Creating and Using Packages 183Chapter 8: Numbers and Strings 1958.1 Numbers 1958.2 Characters 2108.3 Strings 212Chapter 9: Exceptions 2339.1 What Is an Exception? 2339.2 The Catch or Specify Requirement 2359.3 Catching and Handling Exceptions 2369.4 Specifying the Exceptions Thrown by a Method 2459.5 How to Throw Exceptions 2469.6 Unchecked Exceptions-The Controversy 2529.7 Advantages of Exceptions 2539.8 Summary 2589.9 Questions and Exercises: Exceptions 259Chapter 10: Basic I/O 26110.1 I/O Streams 26110.2 File I/O 28610.3 The New I/O Packages 29110.4 Summary 29210.5 Questions and Exercises: Basic I/O 292Chapter 11: Collections 29311.1 Introduction to Collections 29311.2 Interfaces 29511.3 Implementations 34211.4 Algorithms 35511.5 Custom Collection Implementations 36011.6 Interoperability 364Chapter 12: Concurrency 36912.1 Processes and Threads 36912.2 Thread Objects 37112.3 Synchronization 37712.4 Liveness 38412.5 Guarded Blocks 38612.6 Immutable Objects 39112.7 High-Level Concurrency Objects 39512.8 For Further Reading 40212.9 Questions and Exercises: Concurrency 403Chapter 13: Regular Expressions 40513.1 Introduction 40513.2 Test Harness 40613.3 String Literals 40713.4 Character Classes 40913.5 Predefined Character Classes 41413.6 Quantifiers 41613.7 Capturing Groups 42213.8 Boundary Matchers 42413.9 Methods of the Pattern Class 42513.10 Methods of the Matcher Class 43113.11 Methods of the PatternSyntaxException Class 43713.12 Summary 43913.13 Additional Resources 44013.14 Questions and Exercises: Regular Expressions 440Chapter 14: The Platform Environment 44314.1 Configuration Utilities 44314.2 System Utilities 45214.3 PATH and CLASSPATH 45714.4 Questions and Exercises: The Platform Environment 460Chapter 15: Swing 46315.1 A Brief Introduction to the Swing Package 46315.2 Swing Features 47015.3 Questions: Graphical User Interfaces 485Chapter 16: Packaging Programs in JAR Files 48716.1 Using JAR Files: The Basics 48816.2 Working with Manifest Files: The Basics 50016.3 Signing and Verifying JAR Files 50716.4 Using JAR-Related APIs 51416.5 Questions: JAR Files 520Chapter 17: Java Web Start 52117.1 Running Java Web Start Applications 52217.2 Deploying Java Web Start Applications 52417.3 Developing Java Web Start Applications 53417.4 The JNLP API 53617.5 Java Web Start and Security 53817.6 Common Java Web Start Problems 53917.7 Questions and Exercises: Java Web Start 540Chapter 18: Applets 54318.1 Getting Started with Applets 54518.2 Taking Advantage of the Applet API 55918.3 Practical Considerations When Writing Applets 57818.4 Finishing an Applet 59318.5 Deploying Applets 59418.6 Solving Common Applet Problems 60018.7 Questions and Exercises: Java Applets 602Appendix A: Java Language Keywords 603Appendix B: Preparation for Java Programming Language Certification 605B.1 Section 1: Declarations, Initialization and Scoping 606B.2 Section 2: Flow Control 608B.3 Section 3: API Contents 609B.4 Section 4: Concurrency 611B.5 Section 5: OO Concepts 612B.6 Section 6: Collections / Generics 613B.7 Section 7: Fundamentals 614Index 617