The Java Tutorial : A Short Course on the Basics (Java Series) (6TH)

The Java Tutorial : A Short Course on the Basics (Java Series) (6TH)

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

Full Description


The Java (R) Tutorial, Sixth Edition, is based on the Java Platform, Standard Edition (Java SE) 8. This revised and updated edition introduces the new features added to the platform, including lambda expressions, default methods, aggregate operations, and more. An accessible and practical guide for programmers of any level, this book focuses on how to use the rich environment provided by Java to build applications, applets, and components.Expanded coverage includes a chapter on the Date-Time API and a new chapter on annotations, with sections on type annotations and pluggable type systems as well as repeating annotations.In addition, the updated sections "Security in Rich Internet Applications" and "Guidelines for Securing Rich Internet Applications" address key security topics. The latest deployment best practices are described in the chapter "Deployment in Depth."If you plan to take one of the Java SE 8 certification exams, this book can help. A special appendix, "Preparing for Java Programming Language Certification," details the items covered on the available exams. Check online for updates.All of the material has been thoroughly reviewed by members of Oracle Java engineering to ensure that the information is accurate and up to date. This book is based on the online tutorial hosted on Oracle Corporation's website at http://docs.oracle.com/javase/tutorial.

Contents

Preface xxiiiAbout the Authors xxviiChapter 1: Getting Started 1The Java Technology Phenomenon 1The "Hello World!" Application 5A Closer Look at the "Hello World!" Application 23Common Problems (and Their Solutions) 27Questions and Exercises: Getting Started 31Chapter 2: Object-Oriented Programming Concepts 33What Is an Object? 34What Is a Class? 36What Is Inheritance? 38What Is an Interface? 39What Is a Package? 40Questions and Exercises: ObjectOriented Programming Concepts 41Chapter 3: Language Basics 43Variables 44Operators 58Expressions, Statements, and Blocks 68Questions and Exercises: Expressions, Statements, and Blocks 71Chapter 4: Classes and Objects 87Classes 88Objects 99More on Classes 107Nested Classes 121Enum Types 157Chapter 5: Annotations 163Annotations Basics 164Declaring an Annotation Type 165Predefined Annotation Types 167Type Annotations and Pluggable Type Systems 170Repeating Annotations 171Questions and Exercises: Annotations 173Chapter 6: Interfaces and Inheritance 175Interfaces 175Inheritance 193Chapter 7: Generics 219Why Use Generics? 220Generic Types 220Generic Methods 226Bounded Type Parameters 227Generics, Inheritance, and Subtypes 229Type Inference 232Wildcards 236Type Erasure 244Restrictions on Generics 252Questions and Exercises: Generics 256Chapter 8: Packages 259Creating and Using Packages 259Questions and Exercises: Creating and Using Packages 269Chapter 9: Numbers and Strings 271Numbers 271Characters 287Strings 288Chapter 10: Exceptions 309What Is an Exception? 310The Catch or Specify Requirement 311Catching and Handling Exceptions 313Specifying the Exceptions Thrown by a Method 323How to Throw Exceptions 324Unchecked Exceptions: The Controversy 329Advantages of Exceptions 330Summary 335Questions and Exercises: Exceptions 336Chapter 11: Basic I/O and NIO.2 339I/O Streams 339File I/O (Featuring NIO.2) 359Summary 421Questions and Exercises: Basic I/O 422Chapter 12: Collections 423Introduction to Collections 424Interfaces 426Aggregate Operations 471Implementations 489Algorithms 505Custom Collection Implementations 509Interoperability 513Chapter 13: Concurrency 519Processes and Threads 520Thread Objects 521Synchronization 527Liveness 533Guarded Blocks 535Immutable Objects 539High-Level Concurrency Objects 543Questions and Exercises: Concurrency 555Chapter 14: Regular Expressions 557Introduction 558Test Harness 559String Literals 560Character Classes 562Predefined Character Classes 566Quantifiers 568Capturing Groups 574Boundary Matchers 576Methods of the Pattern Class 578Methods of the Matcher Class 583Methods of the PatternSyntaxException Class 589Unicode Support 591Questions and Exercises: Regular Expressions 592Chapter 15: The Platform Environment 595Configuration Utilities 595System Utilities 603PATH and CLASSPATH 609Questions and Exercises: The Platform Environment 613Chapter 16: Packaging Programs in JAR Files 615Using JAR Files: The Basics 616Working with Manifest Files: The Basics 627Signing and Verifying JAR Files 635Using JAR-Related APIs 642Questions and Exercises: Packaging Programs in JAR Files 648Chapter 17: Java Web Start 649Developing a Java Web Start Application 650Deploying a Java Web Start Application 653Displaying a Customized Loading Progress Indicator 656Running a Java Web Start Application 660Java Web Start and Security 661Common Java Web Start Problems 662Questions and Exercises: Java Web Start 663Chapter 18: Applets 665Getting Started with Applets 666Doing More with Applets 677Solving Common Applet Problems 707Questions and Exercises: Applets 708Chapter 19: Doing More with Java Rich Internet Applications 711Setting Trusted Arguments and Secure Properties 711JNLP API 714Cookies 719Customizing the Loading Experience 722Security in Rich Internet Applications 722Guidelines for Securing RIAs 724Questions and Exercises: Doing More with Rich Internet Applications 726Chapter 20: Deployment in Depth 729User Acceptance of RIAs 729Deployment Toolkit 731Java Network Launch Protocol 739Deployment Best Practices 748Questions and Exercises: Deployment in Depth 753Chapter 21: Date-Time 755Date-Time Overview 756Date-Time Design Principles 756The Date-Time Packages 757Method Naming Conventions 758Standard Calendar 759Overview 759DayOfWeek and Month Enums 760Date and Time Classes 764Time Zone and Offset Classes 766Instant Class 770Parsing and Formatting 772The Temporal Package 774Period and Duration 780Clock 783Non-ISO Date Conversion 784Legacy Date-Time Code 787Summary 789Questions and Exercises: Date-Time 791Chapter 22: Introduction to JavaFX 793Appendix: Preparation for Java Programming Language Certification 795Programmer Level I Exam 795Programmer Level II Exam 801Java SE 8 Upgrade Exam 801Index 807

最近チェックした商品