ISBN-10:
020147946X
ISBN-13:
9780201479461
Pub. Date:
04/30/1996
Publisher:
Addison-Wesley
Java Essentials for C & C++ Programmers / Edition 1

Java Essentials for C & C++ Programmers / Edition 1

by Barry Boone

Paperback

Current price is , Original price is $19.95. You

Temporarily Out of Stock Online

Please check back later for updated availability.

This item is available online through Marketplace sellers.

Overview

As an experienced programmer, you're used to having to keep on the leading edgeof software development just to survive in a competitive marketplace. That'swhy you want to learn Java, the next hot language and platform-independentdevelopment environment. And you need to learn it fast.

Java Essentials for C and C++ Programmers propels you into thestratosphere of bleeding edge programmers who are already coding in Java.You'll master Java in the most efficient way possible, by building on theprogramming knowledge you already have in C and C++. You'll learn the ways inwhich Java is strikingly similar to these two languages, such as implementingbehavior for operators and control flow and in the ways it differs completely,such as garbage collection, threads, and exceptions. Most importantly you'llsee how to use this knowledge quickly and effectively to design your own Javaapplications, including Java applets for the Web.

You'll discover the power and the perils of coding in Java, including:

  • using Java's class libraries and methods

  • managing memory—or not

  • using objects instead of unions and pointers

  • getting by without Goto statements

  • accessing C programs as external libraries

  • working with Java APIs

  • playing with multithreading.

An overview of object-oriented programming brings C programmers up to speed inhow Java implements object-oriented features and shows C++ programmers how Javacleans up much of the complexity present in C++'s object concepts.

Filled with code snippets to teach techniques, the streamlined approach ofJava Essentials for C and C++ Programmers speeds you through theprocess of learning thiscutting-edge programming language.

Product Details

ISBN-13: 9780201479461
Publisher: Addison-Wesley
Publication date: 04/30/1996
Pages: 336
Product dimensions: 7.40(w) x 8.90(h) x 0.80(d)

About the Author

Barry Boone is an independent consultant who has helped many Fortune 500 companies successfully implement object-oriented technologies on a variety of platforms.

020147946XAB04062001

Table of Contents

Acknowledgments ..... xvii
Introduction ..... xix
What's Here ? ..... xix
Is This Book Any Fun? ..... xx
Why Learn Java by Comparison? ..... xx
What Does This Book Have to Offer? ..... xxi
PART I Concepts ..... 1
Chapter 1 the Philosophy of Java ..... 3
Simple ..... 3
Familiar ..... 6
Object-Oriented ..... 6
Innovative ..... 8
Types of Java Programs ..... 10
Summary ..... 11
What's Next? ..... 11
Chapter 2 How Java Implements Object-Oriented Programming ..... 13
Your Application Is a Collection of Classes and Instances ..... 13
Your Classes and Instances Contain Data and Behavior ..... 14
Inheritance and Interfaces Enable Class Hierarchies ..... 15
Java's Classes Are the Base Classes ..... 16
Just How Object-Oriented Is It? ..... 17
Primitives ..... 17
Wrappers ..... 17
Arrays and Strings ..... 17
Operator Overloading ..... 18
Method Overloading ..... 15
Constructors and Destructors ..... 18
Summary ..... 18
What's Next? ..... 19
Chapter 3 Language Foundations ..... 21
Building Blocks ..... 22
Execution ..... 22
What Is a Thread? ..... 23
Multiple Threads ..... 24
C and C++ Expect Single Threads ..... 25
Java Expects Multiple Threads ..... 25
Memory ..... 27
Memory Is Your Responsibility in C and C++ ..... 27
Memory Is the System's Responsibility in Java ..... 28
Error Handling ..... 31
Error Handling via Return Values ..... 31
Error Handling via Exceptions ..... 31
ErrorHandling in Java ..... 32
Summary ..... 32
What's Next? ..... 33
Chapter 4 Development Cycles ..... 35
First Questions ..... 35
C : How Do I Want to Do It? ..... 36
C++ and Java: What Do I Want to Do? ..... 36
Software Engineering ..... 36
Designing Procedures in C and C++ ..... 37
Designing Objects in C++ and Java ..... 37
Compiling ..... 37
C and C++ Machine Code (Machine Dependent) ..... 37
Java Class Files and Byte Codes (Machine Independent) ..... 38
Running ..... 41
Executing a C/C++ Program ..... 41
Interpreting a Java Program ..... 41
Organizing Your Projects ..... 42
C and C++ Source and Header Files ..... 42
Java Source Files ..... 42
Packages ..... 42
Publishing APIs ..... 43
Summary ..... 44
What's Next? ..... 44
Chapter 5 Java Environments ..... 45
Transforming the Web ..... 45
Why Java for the Web? ..... 46
Platform-Independent ..... 46
Secure ..... 47
Safe ..... 47
Multithreaded ..... 47
Dynamic ..... 48
Small ..... 48
Standard ..... 48
A New Kind of Web Browser ..... 49
Summary ..... 51
What's Next? ..... 51
PART II Quick Start ..... 53
Chapter 6 Text-based Applications ..... 55
Hello, World! ..... 56
main () and Arguments ..... 57
Packages ..... 59
Executing Behavior ..... 59
Writing Simple Output ..... 59
Reading Simple Input ..... 61
The C Scale ..... 61
A C++ Version ..... 62
A Java Version ..... 63
Classes ..... 64
Instance Variables ..... 65
Constructors and Other Methods ..... 65
Instances ..... 65
Data Types ..... 66
String and StringBuffer ..... 67
Another Version: Isolating the User Interface ..... 67
Program Structure ..... 69
Error Handling ..... 69
Command Line Input ..... 70
Summary ..... 71
What's Next? ..... 71
Chapter 7 Graphical Applications ..... 73
Hello, World! ..... 74
Graphics Independence ..... 74
An Overview of the Graphical Hello, World! ..... 75
Window Hierarchies ..... 76
main () Revisited ..... 77
Writing Simple Output ..... 78

Customer Reviews

Most Helpful Customer Reviews

See All Customer Reviews