Book description
A hands-on guide to the Java programming language, The Java™ Tutorial, Fourth Edition is perfect for any developer looking for a proven path to proficiency with Java SE. This popular tutorial "from the Source" has been completely revised and updated to cover Version 6 of the Java Platform, Standard Edition.
Written by members of the Java Software team at Sun Microsystems, this book uses a tested, interactive approach and features real-world problems that help you learn the Java platform by example.
New to this edition are chapters on generics, collections, Java Web Start, the platform environment, and regular expressions. Key sections, including the Threads, I/O, Object-Oriented Programming Concepts, and Language Basics chapters have been completely rewritten to reflect reader feedback and to cover new features added to the Java SE 6 platform. A new appendix contains information on how to prepare for the Java Programming Language Certification exam.
As with the previous editions, you will find clear explanations of the fundamentals of objects, classes, and data structures, as well as detailed coverage of exceptions, I/O, and threads. All of the popular features that made this book a classic have been retained, including convenient summaries at the end of each section and Questions and Exercises segments to help you practice what you learn.
The accompanying CD-ROM is filled with valuable resources including the latest Java SE software (the JRE, JDK, Java API spec, and the guide documentation), the code samples from this book, and solutions to the questions and exercises.
The Java™ Series is supported, endorsed, and authored by the creators of the Java technology at Sun Microsystems, Inc. It is the official place to go for complete, expert, and definitive information on Java technology. The books in this series provide the inside information you need to build effective, robust, and portable applications and applets. The Series is an indispensable resource for anyone targeting the Java™ platform.
Table of contents
- Copyright
- The Java™ Series
- Foreword
- Preface
-
1. Getting Started
- The Java Technology Phenomenon
- The “Hello World!” Application
- A Closer Look at the “Hello World!” Application
- Common Problems (and Their Solutions)
- Questions and Exercises: Getting Started
- 2. Object-Oriented Programming Concepts
-
3. Language Basics
- Variables
- Operators
- Expressions, Statements, and Blocks
- Control Flow Statements
-
4. Classes and Objects
- Classes
- Objects
- More on Classes
- Nested Classes
- Enum Types
- Annotations
-
5. Interfaces and Inheritance
- Interfaces
-
Inheritance
- The Java Platform Class Hierarchy
- An Example of Inheritance
- What You Can Do in a Subclass
- Private Members in a Superclass
- Casting Objects
- Overriding and Hiding Methods
- Hiding Fields
- Using the Keyword super
- Object as a Superclass
- Writing Final Classes and Methods
- Abstract Methods and Classes
- Summary of Inheritance
- Questions and Exercises: Inheritance
- 6. Generics
- 7. Packages
-
8. Numbers and Strings
- Numbers
- Characters
- Strings
- 9. Exceptions
- 10. Basic I/O
-
11. Collections
- Introduction to Collections
- Interfaces
- Implementations
- Algorithms
- Custom Collection Implementations
- Interoperability
- 12. Concurrency
-
13. Regular Expressions
- Introduction
- Test Harness
- String Literals
- Character Classes
- Predefined Character Classes
- Quantifiers
- Capturing Groups
- Boundary Matchers
- Methods of the Pattern Class
- Methods of the Matcher Class
- Methods of the PatternSyntaxException Class
- Summary
- Additional Resources
- Questions and Exercises: Regular Expressions
- 14. The Platform Environment
-
15. Swing
- A Brief Introduction to the Swing Package
- Swing Features
- Questions: Graphical User Interfaces
-
16. Packaging Programs in JAR Files
- Using JAR Files: The Basics
- Working with Manifest Files: The Basics
- Signing and Verifying JAR Files
- Using JAR-Related APIs
- Questions: JAR Files
- 17. Java Web Start
-
18. Applets
- Getting Started with Applets
-
Taking Advantage of the Applet API
- Finding and Loading Data Files
- Displaying Short Status Strings
- Displaying Documents in the Browser
- Sending Messages to Other Applets
- Playing Sounds
- Defining and Using Applet Parameters
- Using the APPLET Tag
- Practical Considerations When Writing Applets
- Finishing an Applet
- Deploying Applets
- Solving Common Applet Problems
- Questions and Exercises: Java Applets
- A. Java Language Keywords
- B. Preparation for Java Programming Language Certification
- The Java Tutorial CD
Product information
- Title: The Java™ Tutorial Fourth Edition: A Short Course on the Basics
- Author(s):
- Release date: September 2006
- Publisher(s): Addison-Wesley Professional
- ISBN: 0321334205
You might also like
book
The Java® Tutorial: A Short Course on the Basics, Fifth Edition
is based on Release 7 of the Java Platform Standard Edition. This revised and updated edition …
book
The Java® Tutorial: A Short Course on the Basics, 6th Edition
is based on the Java Platform, Standard Edition (Java SE) 8. This revised and updated edition …
book
JFC Swing Tutorial, The: A Guide to Constructing GUIs, Second Edition
The JFC Swing Tutorial is back, fully revised and updated to include the latest revisions to …
book
Sams Teach Yourself Java™ 6 in 21 Days
“If you get only one Java book, it should be Sams Teach Yourself Java in 21 …