O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Beginning Java Programming

Book Description

A comprehensive Java guide, with samples, exercises, case studies, and step-by-step instruction

Beginning Java Programming: The Object Oriented Approach is a straightforward resource for getting started with one of the world's most enduringly popular programming languages. Based on classes taught by the authors, the book starts with the basics and gradually builds into more advanced concepts. The approach utilizes an integrated development environment that allows readers to immediately apply what they learn, and includes step-by-step instruction with plenty of sample programs. Each chapter contains exercises based on real-world business and educational scenarios, and the final chapter uses case studies to combine several concepts and put readers' new skills to the test.

Beginning Java Programming: The Object Oriented Approach provides both the information and the tools beginners need to develop Java skills, from the general concepts of object-oriented programming. Learn to:

  • Understand the Java language and object-oriented concept implementation
  • Use Java to access and manipulate external data
  • Make applications accessible to users with GUIs
  • Streamline workflow with object-oriented patterns

The book is geared for those who want to use Java in an applied environment while learning at the same time. Useful as either a course text or a stand-alone self-study program, Beginning Java Programming is a thorough, comprehensive guide.

Table of Contents

  1. INTRODUCTION
    1. WHO THIS BOOK IS FOR
    2. TOPICS COVERED IN THIS BOOK
    3. TOPICS NOT COVERED IN THIS BOOK
    4. CONVENTIONS
    5. SOURCE CODE
    6. ERRATA
    7. P2P.WROX.COM
    8. HOW TO READ THIS BOOK
    9. GET IN TOUCH
  2. 1 A GENERAL INTRODUCTION TO PROGRAMMING
    1. THE PROGRAMMING PROCESS
    2. OBJECT-ORIENTED PROGRAMMING: A SNEAK PREVIEW
    3. PROGRAMMING ERRORS
    4. PRINCIPLES OF SOFTWARE TESTING
    5. SOFTWARE MAINTENANCE
    6. PRINCIPLES OF STRUCTURED PROGRAMMING
  3. 2 GETTING TO KNOW JAVA
    1. A SHORT JAVA HISTORY
    2. FEATURES OF JAVA
    3. LOOKING UNDER THE HOOD
    4. JAVA LANGUAGE STRUCTURE
    5. JAVA DATA TYPES
    6. SUMMARY
  4. 3 SETTING UP YOUR DEVELOPMENT ENVIRONMENT
    1. INTEGRATED DEVELOPMENT ENVIRONMENTS
    2. INSTALLING ECLIPSE ON YOUR COMPUTER
  5. 4 MOVING TOWARD OBJECT-ORIENTED PROGRAMMING
    1. BASIC CONCEPTS OF OBJECT-ORIENTED PROGRAMMING
    2. CLASSES AND OBJECTS IN JAVA
    3. STORING DATA: VARIABLES
    4. DEFINING BEHAVIOR: METHODS
    5. JAVA SE BUILT-IN CLASSES
  6. 5 CONTROLLING THE FLOW OF YOUR PROGRAM
    1. COMPARISONS USING OPERATORS AND METHODS
    2. UNDERSTANDING LANGUAGE CONTROL
  7. 6 HANDLING EXCEPTIONS AND DEBUGGING
    1. RECOGNIZING ERROR TYPES
    2. EXCEPTIONS
    3. DEBUGGING YOUR APPLICATIONS
    4. TESTING YOUR APPLICATIONS
    5. SUMMARY
  8. 7 DELVING FURTHER INTO OBJECT-ORIENTED CONCEPTS
    1. ANNOTATIONS
    2. OVERLOADING METHODS
    3. THE THIS KEYWORD
    4. INFORMATION HIDING
    5. CLASS INHERITANCE
    6. PACKAGES
    7. INTERFACES
    8. GARBAGE COLLECTION
  9. 8 HANDLING INPUT AND OUTPUT
    1. GENERAL INPUT AND OUTPUT
    2. INPUT AND OUTPUT IN JAVA
    3. STREAMS
    4. SCANNERS
    5. INPUT AND OUTPUT FROM THE COMMAND-LINE
    6. INPUT AND OUTPUT FROM FILES
    7. CONCLUSION
  10. 9 WORKING WITH DATABASES IN JAVA
    1. COVERING THE BASICS OF RELATIONAL DATABASES
    2. ACCESSING RELATIONAL DATABASES FROM JAVA
    3. ENSURING OBJECT PERSISTENCE
    4. COMPARING JAVA DATABASE ACCESS TECHNOLOGIES
    5. WHAT’S AHEAD
  11. 10 ACCESSING WEB SOURCES
    1. A BRIEF INTRODUCTION TO NETWORKING
    2. WEB SERVICES
    3. ACCESSING WEB SERVICES AND SOURCES WITH JAVA
    4. CREATING YOUR OWN WEB SERVICES WITH JAVA
  12. 11 DESIGNING GRAPHICAL INTERFACES
    1. COVERING THE BASICS OF GUIs IN JAVA
    2. COMPARING LAYOUT MANAGERS
    3. UNDERSTANDING EVENTS
    4. CLOSING TOPICS
  13. 12 USING OBJECT-ORIENTED PATTERNS
    1. INTRODUCTION TO PATTERNS
    2. OBJECT-ORIENTED PATTERNS
    3. HELPFUL LIBRARIES
  14. TITLE PAGE
  15. COPYRIGHT
  16. DEDICATION
  17. ABOUT THE AUTHORS
  18. CREDITS
  19. ACKNOWLEDGMENTS
  20. ADVERT
  21. EULA