+612 9045 4394
 
CHECKOUT
Java for Practitioners : An Introduction and Reference to Java and Object Orientation - John Hunt

Java for Practitioners

An Introduction and Reference to Java and Object Orientation

By: John Hunt

Sorry, the book that you are looking for is not available right now.

We did a search for other books with a similar title, however there were no matches. You can try selecting from a similar category, click on the author's name, or use the search box above to find your book.

Share This Book:

Java for Practitioners doesn just provide an introduction to Java, it also tells you all about object orientation. One of the biggest problems with many of the Java books currently on the market is that they only teach the language and ignore the object orientation aspects (or at best just devote one chapter to it). Not only does John Hunt cover both Java and object orientation thoroughly but he also realises that practitioners learn best by oing'and he writes this book to reflect that. Chapters are dippable-into and ideas and concepts are introduced by exercises and practical examples. The book does of course cover the new release - Java 2/JDK 1.2 - and it also includes the Java Self-Tester which lets readers determine whether they are ready to take Sun's Java Certification exam. There is also an essential reference section which provides detailed solutions to real world Java problems, and new Java features. No one intending to move over to Java should be without this book.

Prefacep. xix
Java and Object Orientation
Introduction to Object Orientationp. 3
Introductionp. 3
Programming Paradigmsp. 3
Revolution Versus Evolutionp. 4
Why Learn a New Programming Paradigm?p. 5
Pedigree of Object-Oriented Languagesp. 11
Fundamentals of Object Orientationp. 13
The Basic Principles of Object Orientationp. 13
Encapsulationp. 15
Inheritancep. 16
Abstractionp. 18
Polymorphismp. 19
Summaryp. 20
Further Readingp. 21
Elements of Object Orientationp. 23
Introductionp. 23
Terminologyp. 23
Types of Hierarchyp. 25
The Move to Object Technologyp. 27
Summaryp. 27
Exercisesp. 28
Further Readingp. 28
Why Object Orientation?p. 29
Introductionp. 29
The Procedural Approachp. 29
Does Object Orientation Do Better?p. 31
Summaryp. 33
Constructing an Object-Oriented Systemp. 35
Introductionp. 35
The Application: Windscreen Wipe Simulationp. 35
Where Do We Start?p. 36
Identifying the Objectsp. 37
Identifying the Services or Methodsp. 38
Refining the Objectsp. 39
Bringing It All Togetherp. 39
Where Is the Structure?p. 42
Summaryp. 45
Exercisep. 45
Further Readingp. 45
A Brief History of Time, the Universe and Javap. 47
Introductionp. 47
What Is Java?p. 47
Objects in Javap. 48
Historyp. 48
Commercial Versions of Javap. 49
The Java Environmentp. 50
Further Readingp. 53
Java 2 Platform: Java's Third Age?p. 55
The Three Ages of Javap. 55
So What's in the Java 2 Platform?p. 57
Analysis of the Java 2 Platformp. 60
Conclusionsp. 62
Online Referencesp. 62
Basic Javap. 63
Introductionp. 63
Setting Up the Development Environmentp. 64
Compiling and Executing Javap. 65
Using the Java Debuggerp. 66
Using the Java Documentation Toolp. 69
Summaryp. 70
Further Readingp. 70
Java Building Blocksp. 71
Introductionp. 71
The Basics of the Languagep. 71
Classesp. 73
Method Definitionsp. 80
Interface Definitionsp. 83
Java Constructsp. 85
Introductionp. 85
Numbers and Numeric Operatorsp. 85
Characters and Stringsp. 87
Assignmentsp. 88
Variablesp. 89
Messages and Message Selectorsp. 91
Exercise: Hello Worldp. 92
Summaryp. 93
Control and Iterationp. 95
Introductionp. 95
Control Structuresp. 95
Iterationp. 99
Recursionp. 101
Exercise: Factorialp. 102
Summaryp. 103
The Person Classp. 105
Introductionp. 105
Defining a Classp. 105
Defining a Methodp. 106
Creating an Instancep. 108
Exercise: Personp. 110
Classes, Inheritance and Abstractionp. 113
Introductionp. 113
Classes Revisitedp. 113
Inheritance in Classesp. 116
Abstract Classesp. 119
Constructors and Their Usep. 121
The main Methodp. 122
Encapsulation and Polymorphismp. 123
Introductionp. 123
Encapsulationp. 123
Packagesp. 124
Polymorphismp. 127
Exercise: Managers and Employeesp. 129
Data Structuresp. 131
Introductionp. 131
Data Structure Classesp. 131
The Abstract Class Dictionaryp. 132
The Hashtable Classp. 132
The Vector Classp. 134
The Stack Classp. 136
A Queue Classp. 137
Enumerationp. 137
Arraysp. 138
Memory Managementp. 143
Exercise: Vectorsp. 145
Summaryp. 146
Further Readingp. 146
The Collection APIp. 147
Introductionp. 147
What Is in the Collections API?p. 147
Collection Interfacesp. 148
Abstract Implementationsp. 154
Concrete Implementationsp. 157
The Collections classp. 162
Iteration Over Collectionsp. 163
Array Sorting and Searchingp. 164
Choosing a Collection Classp. 165
Summaryp. 165
An Object-Oriented Organizerp. 167
Introductionp. 167
The Organizer Classp. 167
The Class Definitionp. 168
The Updating Protocolp. 168
The Accessing Protocolp. 169
The Main Methodp. 170
Exercise: the Financial Manager Projectp. 171
Java Developers' Handbook
Graphic Programming Using the Abstract Window Toolkitp. 175
Introductionp. 175
Windows as Objectsp. 175
Windows in Javap. 176
The Abstract Window Toolkitp. 177
The Component Classp. 178
The Container Classp. 181
The Panel Classp. 182
The Frame Classp. 182
The Graphics Classp. 184
A Worked Graphical Applicationp. 186
Exercise: Graphical Hello Worldp. 189
Advanced Exercise: Graphingp. 189
Further Readingp. 190
User Interface Programmingp. 191
Introductionp. 191
The Event Delegation Modelp. 191
GUI Component Classesp. 195
Additional AWT Classesp. 201
Exercise: Text Editorp. 201
Managing Component Layoutp. 203
Introductionp. 203
The FlowLayout Managerp. 203
The BorderLayout Managerp. 204
The GridLayout Managerp. 206
The GridBagLayout Managerp. 206
The CardLayout Managerp. 208
A Simple GUI Examplep. 209
Exercise: GUIs in Javap. 212
Putting the Swing into Javap. 213
Introductionp. 213
Swing, the JFC and the JDKp. 213
What is the MVC?p. 214
Swinging the MVC into Actionp. 215
Transitioning to Swingp. 216
A Swinging Galleryp. 220
Things to Rememberp. 226
Referencesp. 227
Online Referencesp. 227
Swing Data Model Case Studyp. 229
Introductionp. 229
The JTree Swing Componentp. 229
The JTree Packagep. 233
Building the Data Modelp. 236
Building the GUI Applicationp. 238
Online Resourcesp. 244
Observers and Observablesp. 245
Introductionp. 245
The Dependency Mechanismp. 245
The Observer Interfacep. 250
Extending the Dependency Examplep. 250
Exercise: Dependency and the Financial Managerp. 253
Summaryp. 253
A GUI Case Studyp. 255
Introductionp. 255
The Class Structurep. 258
The Instance Structurep. 266
Exercise: a GUI for the Financial Managerp. 266
Summaryp. 267
Further Readingp. 267
Combining Graphics and GUI Componentsp. 269
Introductionp. 269
The SwingDraw Applicationp. 269
The Structure of the Applicationp. 269
The Interactions Between Objectsp. 273
The Classesp. 277
Exercisesp. 298
Summaryp. 298
Referencep. 298
Applets and the Internetp. 299
Introductionp. 299
Applet Securityp. 300
The Applet Classp. 301
Working with Appletsp. 302
The Account Appletp. 303
A Brief Introduction to HTMLp. 305
The [Applet] HTML Tagp. 305
Accessing HTML Filesp. 307
Network Programmingp. 308
Summaryp. 310
Further Readingp. 310
Exercise: Tic-Tac-Toe Appletp. 310
Concurrencyp. 313
Introductionp. 313
Concurrent Processesp. 313
Threadsp. 314
The Thread Classp. 316
A Time-Slicing Examplep. 318
Thread Interactionp. 322
Exception Handlingp. 325
Introductionp. 325
What Is an Exception?p. 325
What Is Exception Handling?p. 326
Throwing an Exceptionp. 327
Catching an Exceptionp. 328
Defining an Exceptionp. 331
Exercise: Custom Exceptionsp. 332
Streams and Filesp. 335
Introductionp. 335
Streamsp. 335
Filesp. 341
Accessing a Filep. 344
Creating a Filep. 345
Input from the Consolep. 347
Exercise: IO for the Text Editorp. 348
Summaryp. 349
Serializationp. 351
Introductionp. 351
The ObjectOutputStream Classp. 352
The ObjectInputStream classp. 353
The Serializable Interfacep. 353
A Simple Serialization Applicationp. 355
Exercise: Using Files with the Financial Managerp. 358
Summaryp. 360
Sockets in Javap. 361
Introductionp. 361
Socket to Socket Communicationp. 361
Setting up a Connectionp. 361
An Example Client-Server Applicationp. 362
Further Readingp. 367
Java and Remote Method Invocationp. 369
Introductionp. 369
Remote Method Invocationp. 369
The RMIClientp. 375
Converting to an Appletp. 376
Performancep. 378
Exercise: RMI Hello Worldp. 383
Servlets: Serving Java up on the Webp. 385
Introductionp. 385
How Servlets Workp. 385
The Structure of the Servlet APIp. 387
An Example Servletp. 388
Why Use Servlets?p. 392
Summaryp. 393
Further Readingp. 393
Java Database Connectivityp. 395
Introductionp. 395
What Is JDBC?p. 395
What the Driver Providesp. 397
Registering Driversp. 397
Opening a Connectionp. 398
Obtaining Data from a Databasep. 400
Creating a Tablep. 402
Applets and Databasesp. 403
Online Referencesp. 404
Referencesp. 404
Mini SQLp. 404
JavaBeans Software Componentsp. 407
Introductionp. 407
JavaBeansp. 407
Defining JavaBeansp. 410
Summaryp. 415
Referencesp. 415
Java Native Interfacep. 417
Introductionp. 417
Properties of the Java Native Interfacep. 417
The Basics of the JNIp. 418
Parameter Passingp. 420
Exercise: Native Hello Worldp. 424
Byte Code Protectionp. 427
Introductionp. 427
Java, IDL and Object Request Brokersp. 431
Introductionp. 431
CORBAp. 431
Java IDLp. 432
Online Referencesp. 441
Inner Classes and Reflectionp. 443
Introductionp. 443
What Are Inner Classes?p. 443
Types of Inner Classp. 446
How and When Should I Use Inner Classes?p. 447
The Reflection APIp. 450
Java Art and Style
Java Style Guidelinesp. 459
Introductionp. 459
Code Layoutp. 459
Variablesp. 459
Classesp. 462
Interfacesp. 464
Enumerated Typesp. 465
Methodsp. 465
Scopingp. 468
Statement Labelsp. 469
Referencep. 470
Common Java Bugs and Programmer Errorsp. 471
Introductionp. 471
Programmer errorsp. 471
Language Weaknessesp. 476
Referencesp. 483
Reliable Java Systemsp. 485
Introductionp. 485
Impactp. 488
Minimization Strategiesp. 490
Consequences for Java Software Developmentp. 492
Further Reading and Referencesp. 493
Performance Optimizationp. 495
Introductionp. 495
Further Readingp. 498
Java Self-Test Examinationp. 499
Introductionp. 499
Java Multiple Choice Examp. 500
Answers to Java Certification Mock Examp. 521
Further Readingp. 521
Object-Oriented Design
Object-Oriented Analysis and Designp. 525
Introductionp. 525
Object-Oriented Design Methodsp. 525
Object-Oriented Analysisp. 525
The Booch Methodp. 526
The Object Modeling Techniquep. 527
The Objectory Methodp. 529
The Fusion Methodp. 531
The Unified Modeling Languagep. 532
Summaryp. 532
Referencesp. 532
OMT and UMLp. 535
Introductionp. 535
Objectory: Use Case Analysisp. 535
The OMT Methodologyp. 535
The UML Notationp. 536
Combining the Three Approachesp. 538
Use Case Analysisp. 541
Introductionp. 541
Use Case Diagramsp. 541
Actorsp. 542
Use Casesp. 543
Use Case Modelsp. 544
Interface Descriptionsp. 544
Online ATM Use Case Analysisp. 545
The Analysis Phase: Object Modellingp. 551
Introductionp. 551
The Object Modelp. 551
Identifying Classesp. 552
Preparing a Data Dictionaryp. 556
Identifying Associationsp. 557
Identifying Attributesp. 563
Identifying Inheritancep. 566
Compositesp. 569
Testing Access Pathsp. 570
Iterating and Refining the Modelp. 570
Grouping Classes into Packagesp. 571
Referencep. 572
The Analysis Phase: Dynamic Modellingp. 573
Introductionp. 573
Identifying Scenariosp. 573
Identification of Eventsp. 573
Preparation of Sequence and Collaboration Diagramsp. 574
Constructing Sequence and Collaboration Diagramsp. 577
State Machine Diagramsp. 579
Referencesp. 585
Functional Modelling and Operationsp. 587
Introductionp. 587
Pseudocode with the Object Navigation Notationp. 589
The Online ATM System Functional Modelp. 592
Adding Operationsp. 593
Identifying Operations for the Online ATM Systemp. 595
The Design and Implementation Phasesp. 599
Introductionp. 599
Design Phasep. 599
Implementation Phasep. 613
Summaryp. 613
The Future
The Future for Javap. 617
Introductionp. 617
The Java Languagep. 617
The Web and Objectsp. 620
Object-Oriented Databases and the Webp. 621
JavaStation, JavaOS and HotJava Viewsp. 621
Java as a Training Languagep. 624
Object Technology: the Next Five Yearsp. 625
Referencesp. 626
Appendices
Java 1.1.* Core API Packagesp. 629
The java. lang Packagep. 631
The java.util Packagep. 635
The java.io Packagep. 639
The java.awt Packagep. 645
The java.awt.event Packagep. 651
The java.awt.image Packagep. 653
Java Keywordsp. 655
Java 2 Core API Packagesp. 657
Indexp. 659
Table of Contents provided by Syndetics. All Rights Reserved.

ISBN: 9781852330934
ISBN-10: 1852330937
Series: Practitioner Series
Audience: General
Format: Paperback
Language: English
Number Of Pages: 668
Published: 21st May 1999
Country of Publication: GB
Dimensions (cm): 23.47 x 15.67  x 4.01
Weight (kg): 1.04