Developing Java Software

Russel Winder and Graham Roberts



1 - Programming with Objects and Classes
2 - The Java Programming Language in Detail
3 - Building Class Libraries
4 - Case Studies in Developing Programs
5 - Endmatter


Java Software





Series Editors Professor David Barron, Southampton University, UK

Professor Peter Wegner, Brown University, USA

The Worldwide Series in Computer Science has been created to publish textbooks which both address and anticipate the needs of an ever evolving curriculum thereby shaping its future. It is designed for undergraduates majoring in Computer Science and practitioners who need to reskill. Its philosophy derives from the conviction that the discipline of computing needs to produce technically skilled engineers who will inevitably face, and possibly invent, radically new technologies throughout their future careers. New media will be used innovatively to support high quality texts written by leaders in the field.

Titles coming soon Goodrich & Tamassia, Data Structures and Algorithms in Java

Kotonya & Sommerville, Requirements Engineering

Russel Winder

King's College London, UK


Graham Roberts

University College London, UK


Chichester · New York · Weinheim · Brisbane · Singapore · Toronto

Copyright © 1998 Russel Winder and Graham Roberts

Published in 1998 by John Wiley & Sons Ltd,

Baffins Lane, Chichester,

West Sussex PO19 1UD, England

National: 01243 779777

International: +44 1243 779777

e-mail (for orders and customer service enquiries):

Visit our Home Page on or

All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording or otherwise, except under the terms of the Copyright, Designs and Patents Act 1988 or under the terms of a licence issued by the Copyright Licensing Agency, 90 Tottenham Court Road, London, UK W1P 9HE, without the permission in writing of the publisher, with the exception of any material supplied specifically for the purpose of being entered and executed on a computer system for exclusive use by the purchaser of the publication.

Neither the authors nor John Wiley & Sons Ltd accept any responsibility or liability for loss or damage occasioned to any person or property through using the material, instructions, methods or ideas contained herein, or acting or refraining from acting as a result of such use. The authors and Publisher expressly disclaim all implied warranties, including merchantability or fitness for any particular purpose. There will be no duty on the authors or Publisher to correct any errors or defects in the software.

Designations used by companies to distinguish their products are often claimed as trademarks. In all instances where John Wiley & Sons is aware of a claim, the product names appear in initial capital or capital letters. Readers, however, should contact the appropriate companies for more complete information regarding trademarks and registration.

Russel Winder and Graham Roberts have asserted their right under the Copyright, Designs and Patents Act 1988 to be identified as the authors of this work.

Other Wiley Editorial Offices

John Wiley & Sons, Inc., 605 Third Avenue,

New York, NY 10158-0012, USA

Weinheim · Brisbane · Singapore · Toronto

Library of Congress Cataloguing in Publication Data

Winder, R. (Russel)

Developing Java Software / Russel Winder and Graham Roberts.

p.    cm.

Includes bibliographic references and index.

ISBN 0-471-97655-5 (alk. paper)

1. Java (Computer programming language)  2. Application software development  3. Object-oriented programming (Computer Science)

I. Roberts. Graham, 1961- .  II. Title

QA76.73.J38W557  1998

005.13'3-dc21 97-35769


British Library Cataloguing in Publication Data

A catalogue record for this book is available from the British Library.

ISBN 0 471 97655 5

Cover image: Paul Gaugin -- At the Bottom of the Mountain. Reproduced with permission from SuperStock.

Produced from PostScript files supplied by Russel Winder.

Printed and bound in Great Britain by Biddles Ltd, Guilford, UK.

This book is printed on acid-free paper responsibly manufactured from sustainable forestry, for which at least two trees are planted for each one used for paper production.

Copyright 1997 Russel Winder and Graham Roberts

Last updated: 6 Oct 1997