Ivor Horton's Beginning Java 2
Uložené v:
| Hlavný autor: | |
|---|---|
| Médium: | E-kniha |
| Jazyk: | English |
| Vydavateľské údaje: |
Newark
John Wiley & Sons, Incorporated
2004
|
| Vydanie: | 5 |
| Predmet: | |
| ISBN: | 0764568744, 9780764568749 |
| On-line prístup: | Získať plný text |
| Tagy: |
Pridať tag
Žiadne tagy, Buďte prvý, kto otaguje tento záznam!
|
Obsah:
- JDBC Concepts and Terminology -- Introducing SQL -- The JDBC Package -- The Essential JDBC Program -- Using a PreparedStatement Object -- Creating an Interactive SQL Tool -- Summary -- Exercises -- Chapter 25: The JDBC in Action -- Data Types and JDBC -- Mapping Relational Data onto Java Objects -- The Statement and PreparedStatement Interfaces -- The ResultSet -- Calling Procedures -- Handling Errors -- Browsing a Database -- Summary -- Exercises -- Appendix A: Keywords -- Appendix B: Computer Arithmetic -- Binary Numbers -- Floating-Point Numbers -- Index
- Observable and Observer Objects -- Generating Random Numbers -- Dates and Times -- Regular Expressions -- Using a Scanner -- Summary -- Exercises -- Chapter 16: Threads -- Understanding Threads -- Managing Threads -- Thread Priorities -- Summary -- Exercises -- Chapter 17: Creating Windows -- Graphical User Interfaces in Java -- Creating a Window -- Components and Containers -- Basics of Components -- Using Containers -- Container Layout Managers -- Adding a Menu to a Window -- More on Applets -- Summary -- Exercises -- Chapter 18: Handling Events -- Window-Based Java Programs -- The Event-Handling Process -- Avoiding Deadlocks in GUI Code -- Event Classes -- Semantic Event Handling in Applets -- Semantic Event Listeners in an Application -- Using Actions -- Adding a Toolbar -- Summary -- Exercises -- Chapter 19: Drawing in a Window -- Using the Model/View Architecture -- Coordinate Systems in Components -- Drawing on a Component -- Shapes -- Filling Shapes -- Managing Shapes -- Drawing Using the Mouse -- Defining Your Own Shape Classes -- Summary -- Exercises -- Chapter 20: Extending the GUI -- Creating a Status Bar -- Using Dialogs -- Pop-Up Menus -- Transforming the User Coordinate System -- Choosing Custom Colors -- Summary -- Exercises -- Chapter 21: Filing and Printing Documents -- Serializing the Sketch -- Implementing the Serializable Interface -- Supporting the File Menu -- Printing in Java -- Summary -- Exercises -- Chapter 22: Java and XML -- XML -- XML Document Structure -- Data Structure in XML -- Document Type Definitions -- Rules for a Well-Formed Document -- XML Namespaces -- XML Schemas -- Programming with XML Documents -- Accessing Parsers -- Using SAX -- Summary -- Exercises -- Chapter 23: Creating and Modifying XML Documents -- The Document Object Model ( DOM) -- Summary -- Exercises -- Chapter 24: Talking to Databases
- The Universal Superclass -- Methods Accepting a Variable Number of Arguments -- Casting Objects -- More on Enumerations -- Designing Classes -- Using the final Modifier -- Interfaces -- Anonymous Classes -- Summary -- Exercises -- Chapter 7: Exceptions -- The Idea Behind Exceptions -- Types of Exceptions -- Dealing with Exceptions -- Exception Objects -- Defining Your Own Exceptions -- Summary -- Exercises -- Chapter 8: Understanding Streams -- Streams and the New I/O Capability -- Understanding Streams -- The Classes for Input and Output -- The Standard Streams -- Summary -- Exercises -- Chapter 9: Accessing Files and Directories -- Working with File Objects -- Creating File Output Streams -- Summary -- Exercises -- Chapter 10: Writing Files -- File I/O Basics -- File Input and Output -- Channels -- Buffers -- Writing to a File -- Summary -- Exercises -- Chapter 11: Reading Files -- File Read Operations -- File Channel Read Operations -- Reading a Text File -- Reading Binary Data -- Reading Mixed Data -- Copying Files -- Random Access to a File -- Read/Write Operations with a Single File Channel -- Memory-Mapped Files -- Summary -- Exercises -- Chapter 12: Serializing Objects -- Storing Objects in a File -- Summary -- Exercises -- Chapter 13: Generic Class Types -- What Are Generic Types? -- Defining a Generic Class Type -- Generic Types and Generic Interfaces -- Variables of a Raw Type -- Using Wildcards as Type Parameter Arguments -- Arrays and Parameterized Types -- Parameterized Methods -- Parameterized Types and Inheritance -- Summary -- Exercises -- Chapter 14: The Collections Framework -- Understanding the Collections Framework -- Collections of Objects -- Iterators -- Collection Classes -- Using Vectors -- Linked Lists -- Using Maps -- Summary -- Exercises -- Chapter 15: A Collection of Useful Classes -- Utility Methods for Arrays
- Intro -- Ivor Horton's Beginning Java 2, JDK 5 Edition -- About the Author -- Credits -- Foreword -- Acknowledgments -- Contents -- Introduction -- Welcome -- Who Is This Book For? -- What's Covered in This Book -- What You Need to Use This Book -- Conventions -- Source Code -- Errata -- p2p.wrox.com -- Chapter 1: Introducing Java -- What Is Java All About? -- Features of The Java Language -- Learning Java -- The Java Environment -- Object-Oriented Programming in Java -- Java Program Structure -- Java and Unicode -- Summary -- Resources -- Chapter 2: Programs, Data, Variables, and Calculation -- Data and Variables -- Integer Data Types -- Floating-Point Data Types -- Fixing the Value of a Variable -- Arithmetic Calculations -- Mixed Arithmetic Expressions -- The op= Operators -- Mathematical Functions and Constants -- Storing Characters -- Bitwise Operations -- Variables with a Fixed Set of Integer Values -- Boolean Variables -- Operator Precedence -- Program Comments -- Summary -- Exercises -- Chapter 3: Loops and Logic -- Making Decisions -- Logical Operators -- The Conditional Operator -- The switch Statement -- Variable Scope -- Loops -- Assertions -- Summary -- Exercises -- Chapter 4: Arrays and Strings -- Arrays -- Strings -- Operations on Strings -- Mutable Strings -- Summary -- Exercises -- Chapter 5: Defining Classes -- What Is a Class? -- Defining Classes -- Defining Methods -- Constructors -- Defining and Using a Class -- Method Overloading -- Using Objects -- Recursion -- Understanding Packages -- Controlling Access to Class Members -- Nested Classes -- The finalize( ) Method -- Native Methods -- Summary -- Exercises -- Chapter 6: Extending Classes and Inheritance -- Using Existing Classes -- Class Inheritance -- Choosing Base Class Access Attributes -- Polymorphism -- Multiple Levels of Inheritance -- Abstract Classes

