Cover
title | : | Java : Practical Guide for Programmers |
author | : | Sikora, Zbigniew. |
publisher | : | Elsevier |
isbn10 | asin | : | 1558609091 |
print isbn13 | : | 9781558609099 |
ebook isbn13 | : | 9780585449968 |
language | : | English |
subject | Java (Computer program language) |
publication date | : | 2003 |
lcc | : | QA76.73.J38S55 2003eb |
ddc | : | 005.7/126/2 |
subject | : | Java (Computer program language) |
Page i
Java
Practical Guide for Programmers
Page ii
The Morgan Kaufmann Practical Guides Series
Series Editor: Michael J. Donahoo
Java: Practical Guide for Programmers
Zbigniew M. Sikora
Multicast Sockets: Practical Guide for Programmers
David Makofske and Kevin Almeroth
The Struts Framework: Practical Guide for Java Programmers
Sue Spielman
TCP/IP Sockets in Java: Practical Guide for Programmers
Kenneth L. Calvert and Michael J. Donahoo
TCP/IP Sockets in C: Practical Guide for Programmers
Michael J. Donahoo and Kenneth L. Calvert
JDBC: Practical Guide for Java Programmers
Gregory D. Speegle
For further information on these books and for a list of forthcoming titles, please visit our Web site at www.mkp.com/practical .
Page iii
Java
Practical Guide for Programmers
Zbigniew M. Sikora
Independent Consultant
Page iv
Senior Editor Rick Adams
Publishing Services Manager Edward Wade
Developmental Editor Karyn Johnson
Cover Design Yvo Riezebos Design
Cover Image Siede Preis/Getty Images
Text Design Side by Side Studios/Mark Ong
Composition and Illustration Windfall Software, using ZzTeX
Copyeditor Robert Fiske
Proofreader Sarah Burgundy
Indexer Steve Rath
Interior Printer The Maple-Vail Book Manufacturing Group
Cover Printer Phoenix Color Corporation
Designations used by companies to distinguish their products are often claimed as trademarks or registered trademarks. In all instances in which Morgan Kaufmann Publishers is aware of a claim, the product names appear in initial capital or all capital letters. Readers, however, should contact the appropriate companies for more complete information regarding trademarks and registration.
Morgan Kaufmann Publishers
An Imprint of Elsevier Science
340 Pine Street, Sixth Floor
San Francisco, CA 94104-3205
www.mkp.com
2003 by Elsevier Science (USA)
All rights reserved
Printed in the United States of America
07 06 05 04 03 5 4 3 2 1
No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any meanselectronic, mechanical, photocopying, recording, or otherwisewithout the prior written permission of the publisher.
Library of Congress Control Number: 2002114098
ISBN: 1-55860-909-1
This book is printed on acid-free paper.
Page v
To my mother, Janina
Page vi
This page intentionally left blank.
Page vii
Introduction | |
Simple Java Application | |
Java Tools | |
javac | |
java | |
Language Features | |
Basic Language Syntax | |
Comments | |
javadoc | |
Statements | |
Variables | |
Constants | |
Data Types | |
Integer Numbers | |
Real Numbers | |
Booleans | |
Characters | |
Strings | |
Arrays | |
Arithmetic Operations | |
Data Type Conversion | |
Flow Control | |
Conditional Statements | |
if Statement | |
if else Statement | |
else if Statement | |
Embedded Conditional Expressions | |
Switch Statement | |
Relational and Logical Operators | |
Bitwise Operators | |
Iteration Statements | |
while Loop | |
do while Loop | |
for Loop | |
break and continue Statements | |
Classes and Objects | |
Class and Object with No Methods | |
Class with Methods | |
Constructors | |
Page viii
Method Overloading | |
Argument Passing in Java | |
Instance and Static Variables | |
Instance and Static Methods | |
this Keyword | |
StringBu.er | |
Vectors | |
Object Wrappers | |
Inheritance and Access Control | |
Creating Subclasses | |
Casting Objects | |
The Object Class | |
equals Method | |
hashCode Method | |
toString Method | |
instanceof Operator | |
Abstract Classes and Methods | |
Interfaces | |
Packages | |
classpath Option | |
Access Control | |
Inner Classes | |
Exceptions | |
Exception Handling | |
Java Exception Classes | |
Creating Exception Classes | |
Propagation of Exceptions | |
Runtime Exceptions | |
Assertions | |
Input/Output | |
Terminal I/O Example |
Next page