Java SE 7 Programming Essentials

Book description

Learn core programming concepts and technologies on the leading software development language

This full-color book covers fundamental Java programming concepts and skills for those new to software development and programming. Taking a straightforward and direct approach,Java SE 7 Programming Essentials provides a solid foundational knowledge of programming topics. Each chapter begins with a list of topic areas, and author Michael Ernest provides clear and concise discussion of these core areas. The chapters contain review questions and suggested labs, so the reader can measure their understanding of the chapter topics.

  • Covers topics such as working with Java data types, using operators and decision constructs, creating and using arrays, and much more

  • Includes additional learning tutorials and tools

  • Puts the focus on Oracle's new Oracle Certified Associate (OCA): Java SE 7 Programmer (1Z0-803) exam

This must-have resource offers new programmers a solid understanding of the Java SE 7 programming language.

Table of contents

  1. Cover
  2. Frontmatter
    1. Acknowledgments
    2. About the Author
  3. Introduction
    1. Who Should Read This Book
    2. What Is Covered in This Book
    3. The Essentials Series
    4. How to Contact the Author
  4. Chapter 1: Introducing the Basics of Java
    1. Understanding Java Class Structure
    2. Writing a main() Method
    3. Importing Other Java Classes
    4. Understanding Variable Scope in Java Code
  5. Chapter 2: Applying Data Types in Java Programming
    1. Creating, Using, and Destroying Objects
    2. Distinguishing between Object References and Primitives
    3. Declaring and Initializing Variables
    4. Default Initialization of Variables
    5. Reading and Writing Object Fields
    6. Using the StringBuilder Class and Its Methods
    7. Creating and Manipulating Strings
  6. Chapter 3: Using Java Operators and Conditional Logic
    1. Using Java Operators
    2. Using Parentheses to Control Operators
    3. Understanding Object Equality
    4. Using if and if/else Statements
    5. Using a switch Statement
  7. Chapter 4: Using Java Arrays
    1. Understanding Java Arrays
    2. Using a One-Dimensional Array
    3. Using a Multi-Dimensional Array
    4. Using an ArrayList Object
  8. Chapter 5: Using Loops in Java Code
    1. Applying while Loops
    2. Applying do/while Loops
    3. Applying for and For-Each Loops
    4. Comparing Loop Constructs
    5. Using continue and break Statements
  9. Chapter 6: Encapsulating Data and Exposing Methods in Java
    1. Encapsulating Data
    2. Exposing Data through Methods
    3. Applying Access Modifiers
    4. Abstracting Data
  10. Chapter 7: Using Java Methods to Communicate
    1. Designing Methods
    2. Overloading Methods
    3. Declaring Methods and Fields static
    4. Passing Data among Methods
  11. Chapter 8: Using Java Constructors
    1. Using the Default Constructor
    2. Defining Alternate Constructors
    3. Adding Parameters to Constructors
    4. Overloading Constructors
  12. Chapter 9: Inheriting Code and Data in Java
    1. Extending a Class
    2. Using the super Keyword
    3. Overriding a Method
    4. Casting Objects
    5. Implementing Polymorphic Behavior
  13. Chapter 10: Understanding Java Interfaces and Abstract Classes
    1. Understanding Abstract Types
    2. Using Abstract Classes
    3. Using Interfaces
    4. Using the enum Type
    5. Distinguishing between Abstract and Concrete References
  14. Chapter 11: Throwing and Catching Exceptions in Java
    1. Understanding the Role Exceptions Play
    2. Using a try-catch Block
    3. Understanding Exception Types
    4. Calling Methods That Throw Exceptions
    5. Recognizing Common Exception Types
  15. Appendix A: Answers to Review Questions
    1. Chapter 1: Introducing the Basics of Java
    2. Chapter 2: Applying Data Types in Java Programming
    3. Chapter 3: Using Java Operators and Conditional Logic
    4. Chapter 4: Using Java Arrays
    5. Chapter 5: Using Loops in Java Code
    6. Chapter 6: Encapsulating Data and Exposing Methods in Java
    7. Chapter 7: Using Java Methods to Communicate
    8. Chapter 8: Using Java Constructors
    9. Chapter 9: Inheriting Code and Data in Java
    10. Chapter 10: Understanding Java Interfaces and Abstract Classes
    11. Chapter 11: Throwing and Catching Exceptions in Java
  16. Appendix B: OCA Certification Program
    1. Certification Objectives Map
  17. Index

Product information

  • Title: Java SE 7 Programming Essentials
  • Author(s): Michael Ernest
  • Release date: November 2012
  • Publisher(s): Sybex
  • ISBN: 9781118359105