+612 9045 4394
 
CHECKOUT
Java Demystified : A Self-teaching Guide : The Demystified Series - James Keogh

Java Demystified : A Self-teaching Guide

The Demystified Series

Paperback Published: 29th April 2004
ISBN: 9780072254549
Number Of Pages: 352

Share This Book:

Paperback

RRP $39.95
$29.90
25%
OFF
Ships in 5 to 9 business days

Learn Java with this fun and painless self-teaching guide. Easy-to-understand, step-by-step instruction explains the most commonly used programming language for designing dynamic Web pages. Numerous examples, quizzes at the end of each chapter, and a final exam solidify the knowledge you have learned.

Introductionp. xv
Inside Javap. 1
Computer Programsp. 1
Datap. 2
Programming Languagesp. 3
In the Beginningp. 5
How a Computer Language Becomes a Standardp. 7
And Then Javap. 7
An Inside Look at Javap. 9
Writing a Java Program from Scratchp. 10
Compiling a Java Programp. 11
Running a Java Programp. 12
Taking Apart a Java Programp. 13
Class Definitionp. 13
Method Definitionp. 14
Statementp. 15
Quizp. 16
Data Types and Variablesp. 17
Data and Numbersp. 17
Playing with Numbering Systemsp. 20
Numbers and Charactersp. 20
Looking Up the Unicode Valuep. 22
Literalsp. 22
Integer Literalsp. 23
Floating-point Literalsp. 24
Boolean Literalsp. 25
Character Literalsp. 26
String Literalsp. 28
Data Typesp. 28
Integer Data Typesp. 29
Floating-point Data Typesp. 31
Character Data Typep. 31
Boolean Data Typep. 32
Casting Data Typesp. 32
Variablesp. 33
Declaring a Variablep. 34
Declaring Multiple Variablesp. 36
Initializing a Variablep. 36
Scope of a Variablep. 38
The Life of a Variablep. 39
Quizp. 40
Expressions and Statementsp. 41
Expressionsp. 41
Types of Expressionsp. 43
Operatorsp. 45
Arithmetic Operatorsp. 46
Relational Operatorsp. 50
Logical Operatorsp. 52
Bitwise Operatorsp. 56
Statementsp. 63
Quizp. 63
Control Structuresp. 65
Program Flowp. 65
Control Statementsp. 66
Selection Statementsp. 67
The if Statementp. 67
The switch Statementp. 76
Iteration Statementsp. 80
The for Loopp. 80
The while Loopp. 85
The do while Loopp. 87
Jump Statementsp. 88
breakp. 88
continuep. 89
returnp. 90
Quizp. 90
Arraysp. 91
Inside an Arrayp. 91
Allocating Memory for an Arrayp. 93
Initializing Arraysp. 94
Multidimensional Arraysp. 94
Creating a Multidimensional Arrayp. 95
Values Assigned to Array Elementsp. 96
The Length Data Memberp. 96
Passing an Array to a Methodp. 98
Returning an Array from a Methodp. 100
Alternate Ways of Creating an Arrayp. 101
The Arrays Classp. 102
equals ()p. 102
fill ()p. 104
sort ()p. 106
binarySearch ()p. 106
Quizp. 107
Methods and Polymorphismp. 109
An Inside Look at Methodsp. 110
Types of Methodsp. 110
The Method Definitionp. 111
The Method Headerp. 111
The Method Bodyp. 112
The Method Return Valuep. 113
The Argument Listp. 114
Elements of an Argument Listp. 115
How an Argument List Worksp. 115
Command-Line Argumentsp. 116
Passing Command-Line Argumentsp. 117
Calling a Methodp. 119
Polymorphismp. 120
The Method Signaturep. 121
Quizp. 123
Classesp. 125
Class Definitionp. 125
Defining a Method Memberp. 127
Access Specifiersp. 127
Declaring Instance Variablesp. 129
Constructorp. 130
Declaring an Instance of a Classp. 131
Accessing Members of a Classp. 132
Overloading Member Methodsp. 133
Overloading a Constructorp. 134
The this Keywordp. 135
Garbage Collectionp. 136
The finalize () Methodp. 137
Inner Classesp. 138
Static Initializersp. 139
Packagesp. 140
Using a Packagep. 141
Classpathp. 142
Packages and Access Protectionp. 143
Quizp. 143
Inheritancep. 145
What Is Inheritance?p. 145
When to Use Inheritancep. 146
Inside Inherencep. 147
Accessing Members of an Inherited Classp. 147
The Superclass Can Be Instantiatedp. 149
One-way Inheritancep. 149
Calling Constructorsp. 150
Using the super Keywordp. 150
Multilevel Inheritancep. 152
Overriding Method Members Using Inheritancep. 154
Dynamic Method Dispatchp. 156
Abstract Classesp. 159
The final Keyword and Inheritancep. 161
The Object Class and Subclassesp. 162
Quizp. 163
Exception Handlingp. 165
What Is an Exception?p. 165
Exception Handlersp. 166
Basic Exception Handlingp. 167
Multiple Catch Blocksp. 168
The Finally Blockp. 169
Working with Uncaught Exceptionsp. 170
Nested Try Statementsp. 171
Throwing an Exceptionp. 172
Methods That Don't Handle Exceptionsp. 174
Checked and Unchecked Exceptionsp. 175
Creating an Exception Subclassp. 176
Quizp. 180
Multithreadingp. 181
Multitaskingp. 181
Overheadp. 182
Threadsp. 183
Synchronizationp. 184
The Thread Classes and the Runnable Interfacep. 185
The Main Threadp. 185
Creating Your Own Threadp. 187
Creating a Thread by Using extendsp. 189
Using Multiple Threads in a Programp. 190
Using isAlive () and join ()p. 192
Setting Thread Prioritiesp. 195
Synchronizing Threadsp. 197
The Synchronized Methodp. 198
Using the Synchronized Statementp. 201
Communicating Between Threadsp. 202
Suspending and Resuming Threadsp. 206
Quizp. 208
Files and Streamsp. 209
Files and File Systemsp. 209
The File Classp. 210
Listing Files Contained in a Directoryp. 213
Streamsp. 214
Writing to a Filep. 214
Reading from a Filep. 216
Appending to a Filep. 217
Reading and Writing an Object to a Filep. 219
Quizp. 222
Graphical User Interfacep. 223
What Is a User Interface?p. 223
What Is a GUI?p. 225
A Simple GUIp. 226
swingp. 228
Content Containerp. 230
Java Layout Managersp. 232
Push Buttonsp. 236
Labels and Text Fieldsp. 237
Radio Buttons and Check Boxesp. 238
Combo Boxesp. 240
Text Areap. 242
Scroll Panep. 243
Getting Data from GUI Componentsp. 245
Reading a Push Buttonp. 247
Reading Radio Buttons and Check Boxesp. 249
Reading a Combo Boxp. 251
Disabling and Enabling GUI Elementsp. 253
Quizp. 253
JDBC and Java Data Objectsp. 255
Database 101p. 255
The Concept of JDBCp. 256
JDBC Driver Typesp. 257
JDBC API Packagesp. 258
The JDBC Processp. 258
Load the JDBC Driverp. 258
Connect to the DBMSp. 259
Create and Execute an SQL Queryp. 260
Terminate the Connection to the DBMSp. 263
Trapping Exceptionsp. 264
Avoid Timing Outp. 265
More on Statement Objectsp. 265
The Statement Objectp. 266
The PreparedStatement Objectp. 268
The CallableStatement Objectp. 270
The ResultSet Objectp. 272
Reading the Resultsetp. 273
Positioning the Virtual Cursorp. 275
Fetching Rowsp. 278
Updatable Resultsetp. 280
Metadatap. 284
Data Typesp. 285
Exceptionsp. 287
Quizp. 287
Java Appletsp. 289
Java Applet Basicsp. 289
Writing a Java Appletp. 291
Structure of a Java Appletp. 291
Calling a Java Appletp. 293
Running a Java Appletp. 294
Other Attributesp. 294
Adding Graphics to the Applet Windowp. 295
Passing Parametersp. 297
Restrictionsp. 298
Using Dialog Boxes with an Appletp. 299
The Status Windowp. 301
Quizp. 302
Final Examp. 303
Answers to Quizzes and Final Examp. 309
Chapter 1p. 309
Chapter 2p. 310
Chapter 3p. 311
Chapter 4p. 311
Chapter 5p. 312
Chapter 6p. 313
Chapter 7p. 313
Chapter 8p. 314
Chapter 9p. 315
Chapter 10p. 316
Chapter 11p. 316
Chapter 12p. 317
Chapter 13p. 318
Chapter 14p. 319
Final Examp. 319
Indexp. 325
Table of Contents provided by Ingram. All Rights Reserved.

ISBN: 9780072254549
ISBN-10: 0072254548
Series: Demystified
Audience: General
Format: Paperback
Language: English
Number Of Pages: 352
Published: 29th April 2004
Publisher: McGraw-Hill Education - Europe
Country of Publication: US
Dimensions (cm): 23.7 x 19.3  x 2.2
Weight (kg): 0.65
Edition Number: 1