Core Java™ 2, Volume I--Fundamentals
by Horstmann, Cay S.; Cornell, Gary-
This Item Qualifies for Free Shipping!*
*Excludes marketplace orders.
Rent Book
New Book
We're Sorry
Sold Out
Used Book
We're Sorry
Sold Out
eBook
We're Sorry
Not Available
How Marketplace Works:
- This item is offered by an independent seller and not shipped from our warehouse
- Item details like edition and cover design may differ from our description; see seller's comments before ordering.
- Sellers much confirm and ship within two business days; otherwise, the order will be cancelled and refunded.
- Marketplace purchases cannot be returned to eCampus.com. Contact the seller directly for inquiries; if no response within two days, contact customer service.
- Additional shipping costs apply to Marketplace purchases. Review shipping costs at checkout.
Summary
Author Biography
Table of Contents
| List of Code Examples | p. xiii |
| Preface | p. xv |
| To the Reader | p. xv |
| About This Book | p. xvii |
| Conventions | p. xviii |
| Sample Code | p. xix |
| Acknowledgments | p. xxi |
| An Introduction to Java | p. 1 |
| Java as a Programming Platform | p. 1 |
| The Java "White Paper" Buzzwords | p. 2 |
| Java and the Internet | p. 7 |
| A Short History of Java | p. 8 |
| Common Misconceptions About Java | p. 11 |
| The Java Programming Environment | p. 15 |
| Installing the Java Development Kit | p. 15 |
| Choosing a Development Environment | p. 19 |
| Using the Command-Line Tools | p. 20 |
| Using an Integrated Development Environment | p. 22 |
| Compiling and Running Programs from a Text Editor | p. 25 |
| Running a Graphical Application | p. 27 |
| Building and Running Applets | p. 30 |
| Fundamental Programming Structures in Java | p. 35 |
| A Simple Java Program | p. 35 |
| Comments | p. 38 |
| Data Types | p. 39 |
| Variables | p. 42 |
| Operators | p. 45 |
| Strings | p. 51 |
| Input and Output | p. 58 |
| Control Flow | p. 65 |
| Big Numbers | p. 79 |
| Arrays | p. 81 |
| Objects and Classes | p. 93 |
| Introduction to Object-Oriented Programming | p. 93 |
| Using Predefined Classes | p. 99 |
| Defining Your Own Classes | p. 108 |
| Static Fields and Methods | p. 117 |
| Method Parameters | p. 122 |
| Object Construction | p. 127 |
| Packages | p. 135 |
| Documentation Comments | p. 144 |
| Class Design Hints | p. 148 |
| Inheritance | p. 151 |
| Classes, Superclasses, and Subclasses | p. 151 |
| Object: The Cosmic Superclass | p. 169 |
| Generic Array Lists | p. 179 |
| Object Wrappers and Autoboxing | p. 186 |
| Reflection | p. 189 |
| Enumeration Classes | p. 207 |
| Design Hints for Inheritance | p. 209 |
| Interfaces and Inner Classes | p. 211 |
| Interfaces | p. 211 |
| Object Cloning | p. 218 |
| Interfaces and Callbacks | p. 223 |
| Inner Classes | p. 226 |
| Proxies | p. 239 |
| Graphics Programming | p. 245 |
| Introducing Swing | p. 245 |
| Creating a Frame | p. 249 |
| Positioning a Frame | p. 251 |
| Displaying Information in a Panel | p. 256 |
| Working with 2D Shapes | p. 260 |
| Using Color | p. 267 |
| Using Special Fonts for Text | p. 272 |
| Doing More with Images | p. 278 |
| Event Handling | p. 285 |
| Basics of Event Handling | p. 285 |
| The AWT Event Hierarchy | p. 302 |
| Semantic and Low-Level Events in the AWT | p. 304 |
| Low-Level Event Types | p. 307 |
| Actions | p. 323 |
| Multicasting | p. 330 |
| Implementing Event Sources | p. 333 |
| User Interface Components with Swing | p. 339 |
| The Model-View-Controller Design Pattern | p. 339 |
| Introduction to Layout Management | p. 345 |
| Text Input | p. 354 |
| Choice Components | p. 380 |
| Menus | p. 406 |
| Sophisticated Layout Management | p. 424 |
| Dialog Boxes | p. 455 |
| Deploying Applets and Applications | p. 493 |
| Applet Basics | p. 493 |
| The Applet HTML Tags and Attributes | p. 504 |
| Multimedia | p. 513 |
| The Applet Context | p. 515 |
| JAR Files | p. 525 |
| Application Packaging | p. 526 |
| Java Web Start | p. 532 |
| Storage of Application Preferences | p. 544 |
| Exceptions and Debugging | p. 557 |
| Dealing with Errors | p. 558 |
| Catching Exceptions | p. 564 |
| Tips for Using Exceptions | p. 576 |
| Logging | p. 579 |
| Using Assertions | p. 594 |
| Debugging Techniques | p. 597 |
| Using a Debugger | p. 611 |
| Streams and Files | p. 619 |
| Streams | p. 619 |
| The Complete Stream Zoo | p. 622 |
| ZIP File Streams | p. 643 |
| Use of Streams | p. 650 |
| Object Streams | p. 662 |
| File Management | p. 684 |
| New I/O | p. 689 |
| Regular Expressions | p. 698 |
| Generic Programming | p. 707 |
| Why Generic Programming? | p. 707 |
| Definition of a Simple Generic Class | p. 709 |
| Generic Methods | p. 711 |
| Bounds for Type Variables | p. 711 |
| Generic Code and the Virtual Machine | p. 713 |
| Restrictions and Limitations | p. 717 |
| Inheritance Rules for Generic Types | p. 720 |
| Wildcard Types | p. 721 |
| Reflection and Generics | p. 729 |
| Java Keywords | p. 735 |
| Retrofitting JDK 5.0 Code | p. 737 |
| Enhanced for Loop | p. 737 |
| Generic Array Lists | p. 737 |
| Autoboxing | p. 737 |
| Variable Parameter Lists | p. 738 |
| Covariant Return Types | p. 738 |
| Static Import | p. 738 |
| Console Input | p. 738 |
| Formatted Output | p. 739 |
| Content Pane Delegation | p. 739 |
| Unicode Code Points | p. 739 |
| Building Strings | p. 739 |
| Index | p. 741 |
| Table of Contents provided by Ingram. All Rights Reserved. |
Excerpts
An electronic version of this book is available through VitalSource.
This book is viewable on PC, Mac, iPhone, iPad, iPod Touch, and most smartphones.
By purchasing, you will be able to view this book online, as well as download it, for the chosen number of days.
Digital License
You are licensing a digital product for a set duration. Durations are set forth in the product description, with "Lifetime" typically meaning five (5) years of online access and permanent download to a supported device. All licenses are non-transferable.
More details can be found here.
A downloadable version of this book is available through the eCampus Reader or compatible Adobe readers.
Applications are available on iOS, Android, PC, Mac, and Windows Mobile platforms.
Please view the compatibility matrix prior to purchase.