Home | Résumé | Courses | Contact | Useful Links | Favorite Links | USC - Homepage


Computer Science 1 - (CPTR151) - Lectures  


 Return to Courses | Course Content  



Computer Science 1 - (CPTR151)

by David Siguelnitzky, MIS; MTE

Lecture 1 - Version 1.2.1

Introduction to Java Programming


                   

                    Lecture Outline

                        1.1 Introduction
                        1.2 History of Java
                        1.3 Java Class Libraries
                        1.4 Basics of a Typical Java Environment
                        1.5 Thinking About Objects: Introduction to Object Technology and the Unified Modeling Language



                    Introduction

                    Java How to Program, Fifth Edition
                            - Java 2 Standard Edition
                            - Object-Oriented Programming

                    History of Java

                        •Java
                                – Originally for intelligent consumer-electronic devices
                                – Then used for creating Web pages with dynamic content
                                – Now also used for:
                        • Develop large-scale enterprise applications
                        • Enhance WWW server functionality
                        • Provide applications for consumer devices (cell phones, etc.)


                    Java Class Libraries
                        •Classes
                                – Include methods that perform tasks
                        • Return information after task completion
                                – Used to build Java programs
                        • Java contains class libraries
                                – Known as Java APIs (Application Programming Interfaces)

                    Basics of a Typical Java Environment
                        •Java programs normally undergo five phases
                                – Edit
                        • Programmer writes program (and stores program on disk)
                                – Compile
                        • Compiler creates bytecodes from program
                                – Load
                        • Class loader stores bytecodes in memory
                                – Verify
                        • Verifier ensures bytecodes do not violate security requirements
                                – Execute
                        • Interpreter translates bytecodes into machine language

 

              
                    Typical Java environment.

                   

                    Thinking About Objects: Introduction to Object Technology and the Unified Modeling Language
                        •Object orientation
                        • Unified Modeling Language (UML)
                                – Graphical language that uses common notation
                                – Allows developers to represent Object-Oriented Designs

                        •Objects
                                – Reusable software components that model real-world items
                                – Look all around you
                        • People, animals, plants, cars, etc.
                                – Attributes
                        • Size, shape, color, weight, etc.
                                – Behaviors
                        • Babies cry, crawl, sleep, etc.


                    Object-Oriented Design (OOD)
                        – Models real-world objects
                        – Models communication among objects
                        – Encapsulates attributes and operations (behaviors)
                                • Information hiding
                                • Communication through well-defined interfaces
                                • Object-Oriented Language
                        – Programming in object oriented languages is called object-oriented programming (OOP)
                        – Java

                    •Object-Oriented Analysis and Design (OOA/D)
                        – Analyze program requirements, then develop solution
                        – UML
                                • Unified Modeling Language

                    •History of the UML
                                – Need developed for process with which to approach OOA/D
                                – Brainchild of Booch, Rumbaugh and Jacobson
                                – Object Management Group (OMG) supervised
                                – Version 2.0 (in 2003)

                    •UML
                                – Graphical representation scheme
                                – Enables developers to model object-oriented systems
                                – Flexible and extendible


                        Source: Java: How to Program – 5th Edition Deitel & Deitel



 Return to Courses | Course Content  


 Home | Résumé | Courses | Contact | Useful Links | Favorite Links | USC - Homepage