Java from the Beginning / Edition 1

Java from the Beginning / Edition 1

by Jan Skansholm
     
 

ISBN-10: 0201398125

ISBN-13: 9780201398120

Pub. Date: 12/22/1999

Publisher: Pearson Education

Features

  • Requires no previous programming experience, and focuses on building programming skills by example
  • Object-oriented programming and design are integrated throughout
  • Offers examples of many different kinds of graphics components during its presentation of graphical user interfaces (GUIs)
  • Provides a complete discussion of

Overview

Features

  • Requires no previous programming experience, and focuses on building programming skills by example
  • Object-oriented programming and design are integrated throughout
  • Offers examples of many different kinds of graphics components during its presentation of graphical user interfaces (GUIs)
  • Provides a complete discussion of inheritance mechanisms, covering such concepts as dynamic binding, polymorphism, abstract classes, and interfacing
  • Dedicates entire chapters to the following Java topics: exception handling, active objects and threads, events handling, streams and files, and communication

Product Details

ISBN-13:
9780201398120
Publisher:
Pearson Education
Publication date:
12/22/1999
Edition description:
Older Edition
Pages:
540
Product dimensions:
6.77(w) x 9.21(h) x 0.44(d)

Table of Contents

Preface xi
Getting started
1(34)
What is Java?
1(2)
Where can we find information about Java?
3(1)
Traditional compiling, linking and execution
4(4)
Compiling and executing Java programs
8(2)
The first program
10(4)
A simple GUI program
14(3)
Applets
17(5)
Graphics
22(6)
Colours
24(1)
Rectangles
25(1)
Circles and ellipses
26(1)
Lines
26(1)
Arcs and segments
26(1)
Texts
27(1)
Packages
28(5)
Exercises
33(2)
Classes and objects
35(38)
Object-orientation
35(3)
Class definitions
38(1)
Variables
39(11)
Variable declarations
40(1)
Simple variable and built-in types
41(4)
Reference variables
45(3)
Assignments
48(1)
Text variables
49(1)
Methods
50(8)
Methods definitions
52(4)
Method calls
56(2)
Encapsulation and visibility
58(2)
Object initializations
60(3)
Overloaded methods
63(1)
The standard class Point
64(2)
Class variable and class methods
66(4)
The standard class Math
70(1)
Exercises
71(2)
Reading and writing
73(24)
Language conventions and number formatting
73(4)
Input and output
77(11)
Reading and writing by using standard classes
77(6)
Reading and writing with the use of help classes
83(5)
Text files
88(6)
Using help classes
88(4)
Using standard classes
92(2)
Exercises
94(3)
Object-oriented program development
97(20)
Object-oriented analysis
97(6)
Object-oriented design
103(1)
Object-oriented programming
104(2)
Algorithms
106(4)
Relations in Java
110(6)
The know relation
110(2)
The has relation
112(3)
The is relation
115(1)
Exercises
116(1)
GUI components
117(56)
An overview
117(5)
Label
122(2)
Designing our own GUI components
124(2)
Panel
126(3)
TextField -- text input
129(4)
ExtendedTextField -- inputting numerical data
133(5)
TextArea
138(1)
Canvas
138(3)
Button
141(3)
Checkbox
144(3)
Choice and List
147(3)
Scrollbar
150(3)
ScrollPane
153(3)
Layout Managers
156(12)
FlowLayout
156(1)
GridLayout
157(1)
BorderLayout
158(2)
CardLayout
160(3)
GridBagLayout
163(5)
Example -- a text editor
168(2)
Exercises
170(3)
Texts and arrays
173(48)
Character codes and character literals
173(5)
The standard class String
178(3)
Comparisons of characters and texts
181(4)
Arrays of simple variables
185(5)
The for statement
190(5)
Arrays of reference variables
195(5)
Arrays as parameters
200(4)
Parameters of main
204(3)
Parameters for applets
207(3)
Multiple relations
210(4)
Multi-dimensional arrays
214(3)
Exercises
217(4)
More about inheritance
221(40)
Definitions of subclasses
221(4)
References to subclasses
225(1)
Hidden instance variables
226(2)
Polymorphism and dynamic binding
228(3)
Constructors and inheritance
231(3)
The method finalize
234(1)
Object collections and class Vector
235(8)
Abstract classes
243(2)
Interface
245(7)
An Object-oriented example
252(7)
Exercises
259(2)
Exceptions
261(14)
Automatically generated exceptions
262(3)
Exceptions generated by the programmer
265(2)
Specification of exceptions
267(3)
Catching exceptions
270(4)
Exercises
274(1)
Active objects
275(34)
Threads
276(7)
Dates and times
283(3)
The class Date
283(1)
The class TimeZone
283(1)
The class Calendar
284(1)
The class DateFormat
285(1)
An example -- digital clocks
286(3)
Synchronization of threads
289(7)
Threads in applets
296(2)
Moving figures
298(4)
Reduction of flicker
302(6)
Do not efface the component
302(1)
Only redraw what is necessary
303(1)
Double buffering
304(4)
Exercises
308(1)
Event-driven programs
309(28)
Events and listeners
310(6)
Program structure
310(1)
Event classes
311(2)
Listener classes and listener interfaces
313(2)
Adapter classes
315(1)
Mouse
316(8)
Keyboard
324(3)
An advanced example - a game of tennis
327(8)
Exercises
335(2)
Windows, dialog boxes and menus
337(32)
The class Window
337(1)
The class Frame
338(4)
The class Dialog
342(10)
The class FileDialog
352(2)
Menus
354(9)
Menu bars, menu and menu alternatives
354(5)
Shortcuts
359(1)
Sub-menus
360(1)
Pop-up menus
361(2)
An example - a text editor
363(5)
Exercises
368(1)
Sounds and images
369(20)
Images in applets
369(4)
The class URL and images in standalone applications
373(4)
Images as GUI components
377(5)
Moving images
382(3)
Sounds in apples
385(2)
Sounds in standalone applications
387(1)
Exercises
388(1)
Streams and files
389(52)
An Overview
390(6)
Byte input streams
390(2)
Char input streams
392(2)
Byte output streams
394(1)
Char output streams
395(1)
Streams for inputting
396(11)
InputStream
397(2)
Reader
399(1)
InputStreamReader
400(1)
FileInputStream
400(1)
FileReader
401(1)
ByteArrayInputStream and CharArrayReader
401(1)
StringReader
402(1)
PipeInputStream and PipeReader
402(1)
FilterInputStream and FilterReader
402(2)
BufferedInputStream and BufferedReader
404(1)
ExtendedReader
404(1)
LineNumberReader
405(1)
PushbackInputStream and PushbackReader
406(1)
SequenceInputStream
406(1)
Streams for outputting
407(10)
OutputStream and Writer
407(1)
OutputStreamWriter
408(1)
FileOutputStream
409(1)
FileWriter
409(1)
ByteArrayOutputStream and CharArrayWriter
410(1)
StringWriter
411(1)
PipedOutputStream and PipedWriter
412(2)
FilterOutputStream and PipedWriter
414(1)
BufferedOutputStream and BufferedWriter
414(1)
PrintStream and PrintWriter
415(1)
ExtendedWriter
416(1)
Streams with binary data
417(8)
DataInputStream and DataOutputStream
418(2)
ObjectInputStream and ObjectOutputStream
420(5)
Direct access files
425(8)
The class File
433(4)
Exercises
437(4)
Communication
441(34)
URL connections
441(5)
Ports and sockets
446(1)
Datagrams
447(10)
Multicast
457(4)
Establishing client-server connections
461(8)
Applets and communication
469(3)
Exercises
472(3)
A bit of everything
475(46)
Comments and documentation
475(3)
More operators
478(5)
Bit operators and the binary storing of whole numbers
478(4)
The conditional operator
482(1)
More statements
483(5)
The switch statement
483(2)
The do statement
485(1)
Statements with labels
486(1)
The break statement
486(1)
The continue statement
487(1)
Recursion
488(5)
Standard classes for collections
493(11)
Common properties of collections
494(3)
General properties of lists
497(2)
Implementing lists
499(1)
General properties of sets
500(3)
Implementing sets
503(1)
Standard classes for maps
504(13)
Properties common to maps
505(1)
The class TreeMap
506(4)
The classes Hashtable and HashMap
510(3)
The class Properties
513(4)
Swing components
517(1)
Exercises
518(3)
Appendix A Reserved words and operators 521(2)
Appendix B LATIN_1 codes 523(2)
Index 525

Customer Reviews

Average Review:

Write a Review

and post it to your social network

     

Most Helpful Customer Reviews

See all customer reviews >