Cover
title | : | Java 2 By Example |
author | : | Friesen, Geoff. |
publisher | : | Pearson Education, Inc. |
isbn10 | asin | : | 0789725932 |
print isbn13 | : | 9780789725936 |
ebook isbn13 | : | 9780768654882 |
language | : | English |
subject | Java (Computer program language) |
publication date | : | 2002 |
lcc | : | QA76.73.J38F75 2002eb |
ddc | : | 005.71262 |
subject | : | Java (Computer program language) |
Page i
Java 2 BY EXAMPLE
Jeff Friesen
Page ii
Java 2 by Example
Copyright 2002 by Que
All rights reserved. No part of this book shall be reproduced, stored in a retrieval system, or transmitted by any means, electronic, mechanical, photocopying, recording, or otherwise, without written permission from the publisher. No patent liability is assumed with respect to the use of the information contained herein. Although every precaution has been taken in the preparation of this book, the publisher and author assume no responsibility for errors or omissions. Nor is any liability assumed for damages resulting from the use of the information contained herein.
International Standard Book Number: 0-7897-2593-2
Library of Congress Catalog Card Number: 2001096463
Printed in the United States of America
First Printing: December, 2001
04 03 02 01 4 3 2 1
Trademarks
All terms mentioned in this book that are known to be trademarks or service marks have been appropriately capitalized. Que cannot attest to the accuracy of this information. Use of a term in this book should not be regarded as affecting the validity of any trademark or service mark.
Warning and Disclaimer
Every effort has been made to make this book as complete and as accurate as possible, but no warranty or fitness is implied. The information provided is on an ''as is" basis. The author and the publisher shall have neither liability nor responsibility to any person or entity with respect to any loss or damages arising from the information contained in this book.
Associate Publisher
Dean Miller
Acquisitions Editor
Todd Green
Development Editor
Sean Dixon
Managing Editor
Thomas F. Hayes
Project Editor
Karen S. Shields
Indexer
D&G Limited, LLC
Proofreader
D&G Limited, LLC
Team Coordinator
Cindy Teeters
Interior Designer
Anne Jones
Cover Designer
Rader Design
Page Layout
D&G Limited, LLC
Page iii
Contents at a Glance
Introduction | |
Part I Exploring the Language | |
1 Introducing Java | |
2 From Unicode to Types | |
3 From Literals to Expressions | |
4 Statements | |
5 Classes and Objects | |
6 Inheritance | |
7 Polymorphism | |
8 Initializers and Nested Classes | |
9 Exceptions and Exception Handlers | |
10 Threads | |
11 Packages | |
Part II Exploring APIs | |
12 From Characters to String Tokenizers | |
13 From Fundamental Data Structures to Collections | |
14 Mathematics | |
15 Files and Streams | |
Part III Appendixes | |
A Answers | |
B Reserved Words | |
C Operator Precedence | |
D Additional Resources | |
Glossary | |
Index | |
Page iv
Table of Contents
Introduction | |
Part I Exploring the Language | |
1 Introducing Java | |
What Is Java? | |
A Basic Definition | |
A Program Development and Execution Environment | |
A Brief History | |
Development Tools | |
From JDK to SDK | |
Commercial Development Tools | |
Freeware Development Tools | |
Java Programs | |
From Applets to Applications | |
Your First Application | |
Application Structure | |
Java Versus C++ | |
Two Listings of the Same Program | |
Language Similarities | |
Language Differences | |
What's Next? | |
Reviewing It | |
Checking It | |
Multiple Choice | |
True or False | |
Applying It | |
2 From Unicode to Types | |
Unicode | |
Comments | |
Single-line Comments | |
Multiline Comments | |
Identifiers | |
Reserved Words and Keywords | |
Page v
Types | |
Primitive Types | |
Reference Types | |
What's Next? | |
Reviewing It | |
Checking It | |
Multiple Choice | |
True or False | |
Applying It | |
3 From Literals to Expressions | |
Literals | |
Boolean Literals | |
Character Literals | |
Floating-Point Literals | |
Integer Literals | |
Null Literals | |
String Literals |
Next page