- ホーム
- > 洋書
- > 英文書
- > Computer / Languages
Full Description
Core Java (R) has long been recognized as the leading, no-nonsense tutorial and reference for experienced programmers who want to write robust Java code for real-world applications. Now, Core Java (R), Volume I-Fundamentals, Tenth Edition, has been extensively updated to reflect the most eagerly awaited and innovative version of Java in years: Java SE 8. Rewritten and reorganized to illuminate new Java SE 8 features, idioms, and best practices, it contains hundreds of example programs-all carefully crafted for easy understanding and practical applicability.Writing for serious programmers solving real-world problems, Cay Horstmann helps you achieve a deep understanding of the Java language and library. In this first volume of the two-volume work, Horstmann focuses on fundamental language concepts and the foundations of modern user interface programming. You'll find in-depth coverage of topics ranging from Java object-oriented programming to generics, collections, lambda expressions, Swing UI design, and the latest approaches to concurrency and functional programming. This guide will help you Leverage your existing programming knowledge to quickly master core Java syntax Understand how encapsulation, classes, and inheritance work in Java Master interfaces, inner classes, and lambda expressions for functional programming Improve program robustness with exception handling and effective debugging Write safer, more readable programs with generics and strong typing Use pre-built collections to collect multiple objects for later retrieval Master concurrent programming techniques from the ground up Build modern cross-platform GUIs with standard Swing components Deploy configurable applications and applets, and deliver them across the Internet Simplify concurrency and enhance performance with new functional techniques If you're an experienced programmer moving to Java SE 8, Core Java (R), Tenth Edition, will be your reliable, practical companion-now and for many years to come.Look for the companion volume, Core Java (R), Volume II-Advanced Features, Tenth Edition (ISBN-13: 978-0-13-417729-8), for coverage of Java 8 streams, input and output, XML, databases, annotations, and other advanced topics. Register your product or convenient access to downloads, updates, and corrections as they become available. See inside the book for information.
Contents
Preface xixAcknowledgments xxvChapter 1: An Introduction to Java 11.1 Java as a Programming Platform 11.2 The Java "White Paper" Buzzwords 21.3 Java Applets and the Internet 81.4 A Short History of Java 101.5 Common Misconceptions about Java 13Chapter 2: The Java Programming Environment 172.1 Installing the Java Development Kit 182.2 Using the Command-Line Tools 232.3 Using an Integrated Development Environment 262.4 Running a Graphical Application 302.5 Building and Running Applets 33Chapter 3: Fundamental Programming Structures in Java 413.1 A Simple Java Program 423.2 Comments 463.3 Data Types 473.4 Variables 533.5 Operators 563.6 Strings 653.7 Input and Output 783.8 Control Flow 893.9 Big Numbers 1083.10 Arrays 111Chapter 4: Objects and Classes 1294.1 Introduction to Object-Oriented Programming 1304.2 Using Predefined Classes 1354.3 Defining Your Own Classes 1454.4 Static Fields and Methods 1584.5 Method Parameters 1644.6 Object Construction 1714.7 Packages 1824.8 The Class Path 1904.9 Documentation Comments 1944.10 Class Design Hints 200Chapter 5: Inheritance 2035.1 Classes, Superclasses, and Subclasses 2045.2 Object: The Cosmic Superclass 2285.3 Generic Array Lists 2445.4 Object Wrappers and Autoboxing 2525.5 Methods with a Variable Number of Parameters 2565.6 Enumeration Classes 2585.7 Reflection 2605.8 Design Hints for Inheritance 283Chapter 6: Interfaces, Lambda Expressions, and Inner Classes 2876.1 Interfaces 2886.2 Examples of Interfaces 3026.3 Lambda Expressions 3146.4 Inner Classes 3296.5 Proxies 350Chapter 7: Exceptions, Assertions, and Logging 3577.1 Dealing with Errors 3587.2 Catching Exceptions 3677.3 Tips for Using Exceptions 3817.4 Using Assertions 3847.5 Logging 3897.6 Debugging Tips 409Chapter 8: Generic Programming 4158.1 Why Generic Programming? 4168.2 Defining a Simple Generic Class 4188.3 Generic Methods 4218.4 Bounds for Type Variables 4228.5 Generic Code and the Virtual Machine 4258.6 Restrictions and Limitations 4308.7 Inheritance Rules for Generic Types 4408.8 Wildcard Types 4428.9 Reflection and Generics 450Chapter 9: Collections 4599.1 The Java Collections Framework 4609.2 Concrete Collections 4729.3 Maps 4979.4 Views and Wrappers 5099.5 Algorithms 5179.6 Legacy Collections 528Chapter 10: Graphics Programming 53710.1 Introducing Swing 53810.2 Creating a Frame 54310.3 Positioning a Frame 54610.4 Displaying Information in a Component 55410.5 Working with 2D Shapes 56010.6 Using Color 56910.7 Using Special Fonts for Text 57310.8 Displaying Images 582Chapter 11: Event Handling 58711.1 Basics of Event Handling 58711.2 Actions 60711.3 Mouse Events 61611.4 The AWT Event Hierarchy 624Chapter 12: User Interface Components with Swing 62912.1 Swing and the Model-View-Controller Design Pattern 63012.2 Introduction to Layout Management 63812.3 Text Input 64812.4 Choice Components 65712.5 Menus 67812.6 Sophisticated Layout Management 69912.7 Dialog Boxes 73012.8 Troubleshooting GUI Programs 770Chapter 13: Deploying Java Applications 77913.1 JAR Files 78013.2 Storage of Application Preferences 78813.3 Service Loaders 80013.4 Applets 80213.5 Java Web Start 824Chapter 14: Concurrency 83914.1 What Are Threads? 84014.2 Interrupting Threads 85114.3 Thread States 85514.4 Thread Properties 85814.5 Synchronization 86214.6 Blocking Queues 89814.7 Thread-Safe Collections 90514.8 Callables and Futures 91514.9 Executors 92014.10 Synchronizers 93414.11 Threads and Swing 937Appendix 953Index 957