Always Learning

Core Java™ 2, Volume I--Fundamentals, 7/E
Cay S. Horstmann
Gary CornellUniversity of Connecticut

ISBN-10: 0131482025
ISBN-13:  9780131482029

Publisher:  Prentice Hall
Copyright:  2005
Format:  Paper; 784 pp
Published:  08/17/2004


Print this content

In this section:


Description

The seventh edition of Core Java™ 2, Volume I, covers the fundamentals of the Java 2 Platform, Standard Edition (J2SE™) along with the basics of user-interface programming. A no-nonsense tutorial and reliable reference, this book features thoroughly tested real-world examples.


Features

Timely new edition of the best-selling introductory book to Java for experienced programmers, completely updated for J2SE 1.5.

° A timely seventh edition of one of the best-selling Java books of all time

° Great code examples, comprehensive coverage, and clear explanations -- the book that MADE The Core Series

° Pre-promotion at JavaOne in June, and well-timed with the J2SE 1.5 release


Table of Contents

List of Code Examples.

Preface.

Acknowledgments.

1. An Introduction to Java.

    Java as a Programming Platform.

    The Java “White Paper” Buzzwords.

    Java and the Internet.

    A Short History of Java.

    Common Misconceptions About Java.

2. The Java Programming Environment.

    Installing the Java Development Kit.

    Choosing a Development Environment.

    Using the Command-Line Tools.

    Using an Integrated Development Environment.

    Compiling and Running Programs from a Text Editor.

    Running a Graphical Application.

    Building and Running Applets.

3. Fundamental Programming Structures in Java.

    A Simple Java Program.

    Comments.

    Data Types.

    Variables.

    Operators.

    Strings.

    Input and Output.

    Control Flow.

    Big Numbers.

    Arrays.

4. Objects and Classes.

    Introduction to Object-Oriented Programming.

    Using Predefined Classes.

    Defining Your Own Classes.

    Static Fields and Methods.

    Method Parameters.

    Object Construction.

    Packages.

    Documentation Comments.

    Class Design Hints.

5. Inheritance.

    Classes, Superclasses, and Subclasses.

    Object: The Cosmic Superclass.

    Generic Array Lists.

    Object Wrappers and Autoboxing.

    Reflection.

    Enumeration Classes.

    Design Hints for Inheritance.

6. Interfaces and Inner Classes.

    Interfaces.

    Object Cloning.

    Interfaces and Callbacks.

    Inner Classes.

    Proxies.

7. Graphics Programming.

    Introducing Swing.

    Creating a Frame.

    Positioning a Frame.

    Displaying Information in a Panel.

    Working with 2D Shapes.

    Using Color.

    Using Special Fonts for Text.

    Doing More with Images.

8. Event Handling.

    Basics of Event Handling

    The AWT Event Hierarchy.

    Semantic and Low-Level Events in the AWT.

    Low-Level Event Types.

    Actions.

    Multicasting.

    Implementing Event Sources.

9. User Interface Components with Swing.

    The Model-View-Controller Design Pattern.

    Introduction to Layout Management.

    Text Input.

    Choice Components.

    Menus.

    Sophisticated Layout Management.

    Dialog Boxes.

10. Deploying Applets and Applications.

    Applet Basics.

    The Applet HTML Tags and Attributes.

    Multimedia.

    The Applet Context.

    JAR Files.

    Application Packaging.

    Java Web Start.

    Storage of Application Preferences.

11. Exceptions and Debugging.

    Dealing with Errors.

    Catching Exceptions.

    Tips for Using Exceptions.

    Logging.

    Using Assertions.

    Debugging Techniques.

    Using a Debugger.

12. Streams and Files.

    Streams.

    The Complete Stream Zoo.

    ZIP File Streams.

    Use of Streams.

    Object Streams.

    File Management.

    New I/O.

    Regular Expressions.

13. Generic Programming.

    Why Generic Programming?

    Definition of a Simple Generic Class.

    Generic Methods.

    Bounds for Type Variables.

    Generic Code and the Virtual Machine.

    Restrictions and Limitations.

    Inheritance Rules for Generic Types.

    Wildcard Types.

    Reflection and Generics.

Appendix A. Java Keywords.

Appendix B. Retrofitting JDK 5.0 Code.

    Enhanced for Loop.

    Generic Array Lists.

    Autoboxing.

    Variable Parameter Lists.

    Covariant Return Types.

    Static Import.

    Console Input.

    Formatted Output.

    Content Pane Delegation.

    Unicode Code Points.

    Building Strings.

Index .


Next Edition(s)

  • Core Java™, Volume I--Fundamentals, 8/E
    Horstmann & Cornell
    ©2008  |  Prentice Hall  |  Paper; 864 pp  |  Instock
    ISBN-10: 0132354764  |  ISBN-13: 9780132354769
    More Info



Back to top

Print this content

In this section:


Author Bios

Cay S. Horstmann is a professor of computer science at San Jose State University. Previously he was vice president and chief technology officer of Preview Systems Inc. and a consultant on C++, Java, and Internet programming for major corporations, universities, and organizations.

Gary Cornell has written or cowritten more than twenty popular computer books. He has a Ph.D. from Brown University and has been a visiting scientist at IBM Watson Laboratories, as well as a professor at the University of Connecticut.




Backcover Copy

Completely revised and up-to-date coverage of

  • Generic programming, restrictions and limitations, type bounds, wilcard types, and generic reflection
  • Swing GUI development, including input validation and other enhancements
  • Exception handling and debugging, including chained exceptions, stack frames, assertions, and logging
  • Streams and files, the new I/O API, memory-mapped files, file locking, and character set encoders/decoders
  • Regular expressions using the powerful java.util.regex package
  • Inner classes, reflection, and dynamic proxies
  • Application packaging and the Preferences API

The seventh edition of Core Java™ 2, Volume I, covers the fundamentals of the Java 2 Platform, Standard Edition (J2SE™). A no-nonsense tutorial and reliable reference, this book features thoroughly tested real-world examples. The most important language and library features are demonstrated with deliberately simple sample programs, but they aren’t fake and they don’t cut corners. More importantly, all of the programs have been updated for J2SE 5.0 and should make good starting points for your own code. You won’t find any toy examples here. This is a book for programmers who want to write real code to solve real problems.

Volume I concentrates on the fundamental concepts of the Java language, along with the basics of user-interface programming and provides detailed coverage of

  • Object-oriented programming
  • Reflection and proxies
  • Interfaces and inner classes
  • The event listener model
  • Graphical user-interface design with the Swing UI toolkit
  • Exception handling
  • Stream input/output and object serialization
  • Generic programming

For the same real-world treatment of enterprise features and advanced user-interface programming, look for the forthcoming new edition of Core Java™ 2, Volume II—Advanced Features.

It includes new sections on metadata and other J2SE 5.0 enhancements along with complete coverage of: Multithreading • Distributed objects • Databases • Advanced GUI components • Native methods • XML Processing • Network programming • Collection classes • Advanced graphics • Internationalization • JavaBeans



Back to top

Log in to the Instructor Resource Center

Login name: 

  Password: 

Forgot login/password?  |  Need to redeem an access code?

        

Instructor Resource Center File Download

This work is protected by local and international copyright laws and is provided solely for the use of instructors in teaching their courses and assessing student learning. Dissemination or sale of any part of this work (including on the World Wide Web) will destroy the integrity of the work and is not permitted. The work and materials from this site should never be made available to students except by instructors using the accompanying text in their classes. All recipients of this work are expected to abide by these restrictions and to honor the intended pedagogical purposes and the needs of other instructors who rely on these materials.

Cancel     I accept, proceed with download

Print this content

Pearson Higher Education offers special pricing when you choose to package your text with other student resources. If you're interested in creating a cost-saving package for your students, browse our available packages below, or contact your Pearson Higher Education representative to create your own package.

Package ISBN-10: 0131674501 | ISBN-13: 9780131674509
©2005 | Out of Stock
Suggested retail price: $102.00  Buy from myPearsonStore

This package contains:

Horstmann & Cornell | ©2005 | Prentice Hall | Paper; 784 pp
Horstmann & Cornell | ©2005 | Prentice Hall | Paper; 1024 pp


Back to top