Book description
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
Table of contents
- Copyright
- List of Code Examples
- Preface
- Acknowledgments
- 1. An Introduction to Java
- 2. The Java Programming Environment
- 3. Fundamental Programming Structures in Java
- 4. Objects and Classes
- 5. Inheritance
- 6. Interfaces and Inner Classes
- 7. Graphics Programming
- 8. Event Handling
- 9. User Interface Components with Swing
- 10. Deploying Applets and Applications
- 11. Exceptions and Debugging
-
12. Streams and Files
- Streams
- The Complete Stream Zoo
- ZIP File Streams
- Use of Streams
-
Object Streams
- Storing Objects of Variable Type
- Understanding the Object Serialization File Format
- Solving the Problem of Saving Object References
- Understanding the Output Format for Object References
- Modifying the Default Serialization Mechanism
- Serializing Singletons and Typesafe Enumerations
- Versioning
- Using Serialization for Cloning
- File Management
- New I/O
- Regular Expressions
- 13. Generic Programming
- A. Java Keywords
- B. Retrofitting JDK 5.0 Code
Product information
- Title: Core Java™ 2 Volume I - Fundamentals, Seventh Edition
- Author(s):
- Release date: August 2004
- Publisher(s): Pearson
- ISBN: 9780131482029
You might also like
book
Effective Java, 3rd Edition
Since this Jolt-award winning classic was last updated in 2008, the Java programming environment has changed …
book
Clean Code: A Handbook of Agile Software Craftsmanship
Even bad code can function. But if code isn’t clean, it can bring a development organization …
book
Redis in Action
Summary Redis in Action introduces Redis and walks you through examples that demonstrate how to use …
book
Refactoring: Improving the Design of Existing Code
Fully Revised and Updated–Includes New Refactorings and Code Examples “Any fool can write code that a …