Java Precisely

Скачать в pdf «Java Precisely»



Java Precisely

Peter Sestoft


The MIT Press


Cambridge, , Massachusetts London, England


Copyright © 2002 Massachusetts Institute of Technology


All rights reserved. No part of this book may be reproduced in any form by any electronic or mechanical means (including photocopying, recording, or information storage and retrieval) without permission in


writing from the publisher.


This book was set in Times by the author using


Printed and bound in the United States of America.


Library of Congress Cataloging-in-Publication Data Sestoft, Peter.


Java precisely/Peter Sestoft. p. cm.


Includes bibliographic references and index.


ISBN 0-262-69276-7 (pbk. : alk. paper)


1. Java (Computer program language) I. Title.


QA76.73.J38 S435 2002 005.13’3—dc21 2002016516


Table of Contents


Preface……………………………………………………………………….4


Notational Conventions…………………………………………………… 5


Chapter 1 — Running Java: Compilation, Loading, and Execution … 6


Chapter 2 — Names and Reserved Names……………………………. 7


Chapter 3 — Java Naming Conventions…………………………………8


Chapter 4 — Comments and Program Layout………………………….9


Chapter 5 — Types………………………………………………………… 11


Chapter 6 — Variables, Parameters, Fields, and Scope…………….. 13


Chapter 7 — Strings …………………………….. 16


Chapter 8 — Arrays……………………………………………………….. 19


Chapter 9 — Classes …………………………….. 2 3


Chapter 10 — Classes and Objects in the Computer…………………..35


Chapter 11 — Expressions…………………………………………………. 37


Chapter 12 — Statements………………………………………………….. 51


Chapter 13    — Interfaces …………………………… 6    1


Chapter 14 — Exceptions, Checked and Unchecked ……………………63


Chapter 15 — Threads, Concurrent Execution, and Synchronization .. 66 Chapter 16 — Compilation, Source Files, Class Names, and Class Files . 73

Скачать в pdf «Java Precisely»