1st Edition

Java Programming Fundamentals Problem Solving Through Object Oriented Analysis and Design

By Premchand S. Nair Copyright 2008
    756 Pages 167 B/W Illustrations
    by CRC Press

    756 Pages
    by CRC Press

    While Java texts are plentiful, it’s difficult to find one that takes a real-world approach, and encourages novice programmers to build on their Java skills through practical exercise. Written by an expert with 19 experience teaching computer programming, Java Programming Fundamentals presents object-oriented programming by employing examples taken from everyday life.

    • Provides a foundation in object-oriented design principles and UML notation
    • Describes common pitfalls and good programming practices
    • Furnishes supplemental links, documents, and programs on its companion website, www.premnair.net
    • Uses day-to-day life examples to introduce every object-oriented and programming concept
    • Includes an extensive stand-alone chapter on GUI and event programming
    • Contains numerous examples, self-check questions, quick review material and an extensive list of both programming and non-programming exercises

    The text presents object-oriented design and programming principles in a completely integrated and incremental fashion. It correlates each concept to a real-world application example and then introduces the corresponding Java language construct. The approach continues throughout the book, in that every concept is first introduced through practical examples, followed by short programming tutorials. To round out its coverage, the book provides several case studies, which illustrate various design issues and demonstrate the usefulness of techniques presented throughout the book.

    Using its one-of-a-kind approach, Java Programming Fundamentals demonstrates the object-oriented design techniques required to simulate actual real-life situations without compromising study of traditional programming constructs and structures.

    OBJECT MODEL OF COMPUTATION
    Introduction
    Object Model of Computation
    Data Representation
    Hardware Overview
    A Brief History of programming Languages and Models of Computation
    Creating and Executing a Java Program
    Problem Statement Object Oriented Analysis and Design-Implementation- Testing Cycle
    CLASS AND JAVA FUNDAMENTALS
    A Java Application Program
    A Java Greetings Program
    Data Types
    Operations on Numeric Data Types
    Named Constants an Variables
    Input Statement
    OBJECT ORIENTED DESIGN
    Class
    Testing
    Class Design
    DECISION MAKING
    Control Structures
    Logical Expression and Operators
    Selections Structures
    Enumerated Types
    Payroll for a Small Business
    POWER OF REPETITION
    Control Structures
    Using Text File for Input
    Using File for Output
    Repetition Structure : while
    Repetition Structure : for
    Repetition Statement : do … while
    Statements break and continue
    Payroll for Small Business – Revisited
    METHODS
    Classification
    Method Invocation
    User-Defined Methods
    Constructors
    Common Methods
    Static Members
    Creating and Using Packages
    Fraction Calculator
    PRINCIPLES OF OBJECT-ORIENTATION
    Objects
    Subclass
    Abstract Classes and Methods
    The Object class
    Composition
    Interface
    Payroll for Small Business
    GRAPHICAL USER INTERFACE: APPLICATIONS AND APPLETS
    The common Theme behind All GUI Application programs
    Creating an Application Window
    Creating a New Application Class
    Program: Metric Conversion Helper
    Programming Options for Event Listeners
    Applets
    Applet and GUI Application
    Graphics
    Color
    Font
    Drawing Services
    SIMPLE DATA STRUCTURES
    One-Dimensional Array
    Two Dimensional Array
    Multi-Dimensional Array
    The Vector Class
    Programming Example: Mr. Grace’s Grade Sheet
    SEARCHING AND SORTING
    List Processing
    Searching
    Sorting
    The Vector Class
    EXCEPTION HANDLING
    Exception Class
    Handling Exceptions with in a Program
    Exception Handling Techniques
    User-Defined Exception Classes

    Biography

    Premchand S. Nair

    …carefully thought out and well crafted … teaches object-oriented design and programming in a completely integrated and incremental fashion. … a pedagogically excellent first course in object-oriented design and programming … Nair’s outstanding book is my first choice for learning object orientation and Java in considerable depth …
    —George Hacken, in Computing Reviews, Reviews.com, July 2009

    … covers a good deal of Java, while also providing the rudiments of UML, some fundamental algorithms like sorting, and data structures like arrays. … The abundance of examples and exercises is very valuable … Summing Up: Recommended.
    —L. Benedicenti, University of Regina, in CHOICE, Vol. 47, No. 04