Object Oriented Programming With Java pptx

846 4.2K 2
Object Oriented Programming With Java pptx

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... applets (a Java program designed to run using a Java- enabled web browser); they named it HotJava In addition to applets, the Java language can be used to develop standalone application programs that do not involve the use of web pages Java is an object- oriented language, unlike Pascal and C, which are procedural languages As a programmer, object- oriented programming means that you focus on building classes... first Java program ■ Java 2 SDK Tool support ■ How to copy, modify, and save programs from the CD 0.1 What is Java? Java is a computer language, designed and implemented by Sun Microsystems, Inc The term Java is not an acronym; it was adopted to reflect a favorite drink (coffee) of many programmers—hence Sun’s logo for Java is a cup of steaming coffee Java is a very young language in comparison with. .. W elcome to the world of Object- Oriented Programming with Java Please take your time to read this introduction It will help you set up your computer system so that you can execute the Java program examples used throughout this book and so that you will be able to create and execute your own Java programs The chapter begins by instructing you how to download and install the Java 2 Software Development... two tools that you used in this chapter and that you will use extensively throughout this book are: ■ javac—the Java Language Compiler that you use to compile programs written in the Java programming language into bytecodes ■ java the Java Interpreter that you use to run programs written in the Java programming language Take your time to browse through the SDK tool documentation using your mouse pointer... instructor’s guide is available, free of charge, to adopters of Object- Oriented Programming with Java The instructor’s guide is accessible via a password protected page on the Jones and Bartlett web site This guide contains hints and tips on teaching the material, together with all of the answers to the review questions, and many of the programming problems To utilize this guide, qualified instructors... Chapter 1 1 What is Java? 2 Using the Internet 3 Downloading the Java 2 SDK for Windows, Unix (Solaris), and Linux Users 4 Downloading Java 2 SDK Documentation 4 Creating a Java Software Development Environment 5 Copying and Installing the Audio-Visual Interface (AVI) 7 How to Input and Save a Java Program in the Computer 9 How to Compile a Java Program 10 How to Execute (run) a Java Program 12 SDK... Run-Time Errors 82 Logical Errors 82 Summary 82 Review Questions 83 Exercises 84 Programming Problems Chapter 3 85 Object- Oriented Programming 3.1 3.2 3.3 3.4 Abstract Data Type 88 Constructors 90 Instance Methods 93 Class Methods 101 87 Contents 3.5 3.6 3.7 Scope and Lifetime of Identifiers 104 Software Development 106 Object- Oriented Program Design 108 Identify the Classes and Methods 109 Algorithm Development... and the time of day you access the Internet 0.4 Downloading Java 2 SDK Documentation In addition to downloading the SDK, you may also want to download the associated documentation It is also free of charge, and we strongly suggest you download it so that you have easy access to it while pursuing your study of object- oriented programming with Java Assuming you are still connected to the Internet, use... you saved your Java program Example_1 .java In this scenario, the program is stored in the subdirectory Java\ disk\Introduction on the D drive The command to compile a Java program using the Java 2 SDK is javac To compile the first program listed, you would issue the following command: javac Example_1 .java Figure 0.6 illustrates how to use the compilation command in an MSDOS window Unix and Linux users... run a Java program using the Java 2 SDK is java To execute the HELLO WORLD program you would issue the following command in the same window where you compiled the program: java Example_1 Figure 0.7 illustrates how to execute the program by typing the command java Example_1 at the prompt in the MSDOS window Unix and Linux users will use the same command but from a terminal window By default, the java . Object- Oriented Programming With Java, Second Edition Barry J. Holmes Daniel T. Joyce JONES AND BARTLETT PUBLISHERS Object- Oriented Programming with Java Second. Audience Object- Oriented Programming with Java is written for first-year college/univer- sity programming courses worldwide. It introduces you to object- oriented design

Ngày đăng: 05/03/2014, 13:20

Từ khóa liên quan

Mục lục

  • 0763714356

  • Contents

  • Chapter 0 Introduction

    • 0.1 What is Java?

    • 0.2 Using the Internet

    • 0.3 Downloading the Java 2 SDK for Windows, Unix (Solaris), and Linux Users

    • 0.4 Downloading Java 2 SDK Documentation

    • 0.5 Creating a Java Software Development Environment

    • 0.6 Copying and Installing the Audio-Visual Interface (AVI)

    • 0.7 How to Input and Save a Java Program in the Computer

    • 0.8 How to Compile a Java Program

    • 0.9 How to Execute (run) a Java Program

    • 0.10 SDK Tools

    • 0.11 Copying and Editing Programs from the CD

    • Summary

    • Chapter 1 Primitive Data Types and Arithmetic

      • 1.1 Data

      • 1.2 Data Storage

        • Number Systems

        • 1.3 Identifiers

        • 1.4 Syntax

        • 1.5 Variables and Constants

        • 1.6 The Format of a Simple Program

Tài liệu cùng người dùng

Tài liệu liên quan