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
Completely revised and up-to-date coverage of
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
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
Download the Source Code related to this title.
Download the Sample
Chapter related to this title.
List of Code Examples.
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.
Input and Output.
4. Objects and Classes.
Introduction to Object-Oriented Programming.
Using Predefined Classes.
Defining Your Own Classes.
Static Fields and Methods.
Class Design Hints.
Classes, Superclasses, and Subclasses.
Object: The Cosmic Superclass.
Generic Array Lists.
Object Wrappers and Autoboxing.
Design Hints for Inheritance.
6. Interfaces and Inner Classes.
Interfaces and Callbacks.
7. Graphics Programming.
Creating a Frame.
Positioning a Frame.
Displaying Information in a Panel.
Working with 2D Shapes.
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.
Implementing Event Sources.
9. User Interface Components with Swing.
The Model-View-Controller Design Pattern.
Introduction to Layout Management.
Sophisticated Layout Management.
10. Deploying Applets and Applications.
The Applet HTML Tags and Attributes.
The Applet Context.
Java Web Start.
Storage of Application Preferences.
11. Exceptions and Debugging.
Dealing with Errors.
Tips for Using Exceptions.
Using a Debugger.
12. Streams and Files.
The Complete Stream Zoo.
ZIP File Streams.
Use of Streams.
13. Generic Programming.
Why Generic Programming?
Definition of a Simple Generic Class.
Bounds for Type Variables.
Generic Code and the Virtual Machine.
Restrictions and Limitations.
Inheritance Rules for Generic Types.
Reflection and Generics.
Appendix A. Java Keywords.
Appendix B. Retrofitting JDK 5.0 Code.
Enhanced for Loop.
Generic Array Lists.
Variable Parameter Lists.
Covariant Return Types.
Content Pane Delegation.
Unicode Code Points.
Download the Index
file related to this title.