Thinking in Java

Front Cover
Prentice Hall, 2003 - Computers - 1119 pages

Appropriate for intermediate to advanced courses in Java.

In Thinking in Java, Third Edition, Bruce Eckel revises his widely-praised Java introduction to fully reflect the power of Java 2 Standard Edition, Version 1.4. This new edition of the book that won the 1999 Software Development Magazine Productivity Award adds thoroughly updated coverage of servlets, JSP, and EJB. As always, Eckel doesn't just show students what to do, but why. He introduces all the basics of objects as Java uses them; then walks carefully through the fundamentals of Java programming, including program flow, initialization and cleanup, implementation hiding, reusing classes and polymorphism. Using to-the-point examples, he introduces exception handling, Java I/O, run-time type identification, and passing and returning objects. Coverage also includes: database integration, transactions, security, Swing GUI development, Jini, JavaSpaces, and much more. Eckel presents Java one simple step at a time, carefully organizing his material so students can learn new concepts even in short study periods, and thoroughly digest each new idea and technique before moving on. All code examples are simple and short, enabling even beginners to understand every detail. All code examples are on the accompanying CD-ROM, along with electronic copies of the book in several formats, and the complete Thinking in C multimedia course, which introduces crucial concepts every beginning programmer must master before learning Java.

Contents

Preface
1
Introduction
9
Introduction to Objects
31
Coding standards
60
Serverside programming
71
Everything is an Object
77
Scope of objects
84
Building a Java program
90
Input streams
605
Standard IO
612
Converting data 6 19
619
View buffer
625
Buffer details
632
File locking
640
Java Archives JARS
648
Finding the class
654

Comments and embedded
97
Controlling Program Flow
107
Initialization Cleanup
165
Specifying initialization
193
Array initialization
202
Multidimensional arrays
208
Hiding the Implementation
215
Interface
231
Reusing Classes
241
Guaranteeing proper cleanup
252
Polymorphism
279
Pure inheritance
308
Interfaces Inner Classes
315
Interfaces
368
Error Handling with Exceptions
371
Grouping constants
381
Standard
392
350
415
Detecting Types
423
Collections of Objects 453
457
Filling an array
469
LinkedHashMap
502
Choosing between Lists
551
Choosing between Maps
557
Filling containers
572
Iterators
580
The Java IO System
583
Map functionality 520
590
Readers Writers
598
Concurrency
699
More sophisticated
752
The proper way to stop
758
Creating Windows Applets
765
A display framework
777
Text areas
783
BoxLayout
789
What is a JavaBean?
883
A more sophisticated Bean
892
Packaging a Bean
901
Discovering Problems
909
Reusing
935
the implementation 40
943
Graphical debugger
984
Improving reliability
991
Analysis and Design
997
Passing
1020
Passing Returning Objects
1021
Adding cloneability
1028
Cloning a composed object
1035
Adding cloneability
1042
The copy constructor
1049
Java Programming Guidelines
1071
the interface
1074
Supplements
1085
onCD 3rd edition
1086
Resources
1091
Analysis design
1092
Copyright

Other editions - View all

About the author (2003)

BRUCE ECKEL is president of Mindview, Inc., which provides public and private training seminars, consulting, mentoring, and design reviews in Object-Oriented technology and Design Patterns. He is the author of Thinking in C++, Volume 2, and other books, has written over 150 articles, and has given lectures and seminars throughout the world for over 20 years. He has served as a voting member of the C++ Standards Committee. He holds a BS in Applied Physics and an MS in Computer Engineering.

Bibliographic information