|
|
Index
Symbols
- & (AND operator), 82
- = (assignment operator), 84
- ~ (complement operator), 82
- == (equal operator), 80
- ^ (exclusive OR operator), 82
- > (greater-than operator), 79
- >= (greater-than-or-equal-to operator), 79
- << (left shift operator), 83
- < (less-than operator), 79
- <= (less-than-or-equal-to operator), 80
- != (not-equal operator), 80
- | (OR operator), 82
- >> (right shift operator), 83
- >>> (right zero-filled shift operator), 83
- 100% Pure Java, 458
- applications, 461-464
- certification
- costs, 459
- requirements, 459-460
- Initiative campaign, 460
- 2D API, 445-446
- 3D API, 446
A
- abstract method, 108-109, 414
- abstract reserved word, 47-48
- Abstract Windowing Toolkit (AWT), 177-184, 451
- accept( ) method, 376
- access classes, 99-100
- access flags, 29
- access_flags region (class files), 28-29
- Accessibility API, 444-445
- ACTION_EVENT field, 181
- ACTION_EVENT_MASK field, 179
- activeCount( ) method, 171
- ADJUSTMENT_EVENT_MASK field, 179
- Admin View Module (AVM), 451
- ALT_MASK field, 181
- and operator
- bitwise, 82
- logical, 81
- APIs (application programming interfaces), 573
- 2D, 445-446
- 3D, 446
- Accessibility, 444
- development, 407-411
- Java Sound, 447
- Java Speech, 447
- Java Telephony, 447
- JMAPI, 450
- Applet Integration interfaces, 452
- Base Object interfaces, 451-452
- Managed Container interfaces, 452
- Managed Protocol interfaces, 452
- SNMP interfaces, 452
- User Interface Style Guide, 450-451
- Web site, 450
- Applet Integration interfaces (JMAPI), 452
- applets, executing, 208
- appletviewer, 208
- application layer (OSI model), 347
- applications
- 100% Pure Java, 461-464
- chat
- multicast datagrams, 365-369
- standard UDP datagrams, 360-364
- RMI calculator, 392
- client, 396-397
- remote notification, 398-404
- server application, 395-396
- server implementation, 393-394
- server interface, 392
- TCP/IP calculator
- client, 383-386
- server, 377-383
- arg field, 181
- arithmetic operators, 76-78
- arraycopy( ) method, 168
- Asciiz constant type, 27
- assignment operators, 77, 84-85
- attributes region (class files), 32
- audio
- Java Sound API, 447
- Java Speech API, 447
- Java Telephony API, 447
- @author tag, 210
- author parameter (javadoc command), 211
- auto documentation (javadoc), 208
- command-line options, 211-212
- source comments, 209
- tags, 209-211
- AVM (Admin View Module), 451
- AWT (Abstract Windowing Toolkit), 177-184, 451
- AWTEvent class
- constructors, 180
- fields, 179
- methods, 180
- AWTEvent( ) method, 180
B
- BACK_SPACE field, 181
- Base Object interfaces (JMAPI), 451
- BDK (Bean Development Kit), 453
- Beans, see JavaBeans
- binding ports, 352
- bit-manipulation operators, 76-77, 81-83
- AND, 82
- complement, 82
- exclusive OR, 82
- left shift, 83
- OR, 82
- right shift, 83
- right zero-filled shift, 83
- block-level serialization, 148
- blocking servers, 377
- Boolean data type, 74
- Boolean reserved word, 48
- Bowles, Kenneth, 16
- break statement, 48-49
- byte data type, 71-72
- byte reserved word, 49
- byte-code verification, 207
- byteValue( ) method, 160
C
- C stack, 204
- calculator applications, 376
- RMI
- client, 396-397
- remote notification, 398-404
- server application, 395-396
- server implementation, 393-394
- server interface, 392
- TCP/IP
- client, 383-386
- server, 377-383
- calling methods, 390-391
- CAPS_LOCK field, 181
- case statement, 49-50
- Cassettes (JECF), 466
- cast operator, 85
- casting, 110
- down, 111-112
- up, 112
- catch statement, 50
- catching exceptions, 114
- program flow, 114
- standard exceptions, 115
- try...catch blocks, 113
- certificates (100% Pure Java)
- cost considerations, 459
- requirements, 459-460
- Certified Developer Examination (Sun), 470, 569, 574-575
- practice exam #1
- answers, 489-516
- programming exercise, 472-486
- written exam, 487-488
- practice exam #2
- answers, 537-565
- programming exercise, 520-534
- written exercise, 535-536
- registration, 577-578
- study checklist, 471-472
- test-taking tips, 6-7
- topic areas, 5-6
- deployment, 576-578
- OOP, 575-576
- Certified Programmer Examination (Sun), 217-218, 569-571
- practice exam #1
- answers, 251-257
- questions, 222-251
- practice exam #2
- answers, 289-295
- questions, 260-288
- practice exam #3
- answers, 330-336
- questions, 298-329
- registration, 577-578
- study checklist, 220-221
- test-taking tips, 6-7, 219-220
- testing procedure, 218-220
- topic areas, 4-5
- API, 573
- applets, 573-574
- language mechanics, 572-573
- syntax, 571-572
- char data type, 73
- char reserved word, 50
- charAt( ) method, 164
- chat applications
- multicast datagrams, 365-369
- standard UDP datagrams, 360-364
- checkAccess( ) method, 171
- Class Cache Unit, 34
- Class constant type, 28
- Class File Retrieval Unit, 33
- class file regions, 25-26
- access_flags, 28-29
- attributes, 32
- Code structure, 31-32
- constant_pool, 27-28
- fields, 30
- interfaces, 30
- magic, 26
- methods, 30-31
- SourceFile structure, 32
- this_class, 29
- version, 26
- Class Initializer Unit, 34
- Class Linker Unit, 34
- Class Loader, 33-34
- class reserved word, 51
- Class Verification Unit, 34
- class-level serialization (threads), 147
- classes
- AWTEvent
- constructors, 180
- fields, 179
- methods, 180
- constructors, 104-105
- creation order, 105-108
- DatagramPacket
- constructors, 354
- methods, 354-355
- DatagramSocket, 355
- chat application, 360, 364
- constructors, 356-357
- methods, 357-358
- declaring, 98-100
- Event, 180
- constructors, 183-184
- fields, 181-183
- methods, 184
- EventObject
- constructors, 175
- fields, 174
- methods, 175
- executing, 32-35
- Hashtable
- constructors, 175-176
- methods, 176-177
- inheritance, 100-104
- JFC
- 2D API, 445
- drag-and-drop, 445
- lightweight components, 442-444
- Swing set, 444-445
- Web site, 442
- loading, 33-34
- MulticastSocket, 358-360
- chat application, 365, 369
- methods, 359-360
- Number, 159-160
- Object, 160
- constructor, 161
- methods, 101-102, 161-162
- packages, 109
- paths, 195
- ServerSocket, 374-376
- constructors, 375
- methods, 375-376
- Socket, 371-374
- constructors, 371-372
- methods, 372-374
- String
- constructors, 162-163
- methods, 164-167
- System, 167
- fields, 168
- methods, 168-169
- Thread, 169
- constructors, 170-171
- fields, 170
- methods, 171-173
- CLASSPATH environment variable, 195
- -classpath parameter
- java command, 201
- javac command, 196
- javadoc command, 211
- clear( ) method, 176
- clickCount field, 181
- client/server applications, 417-418
- clone( ) method, 101, 176
- CloneNotSupportedException( ) method, 161
- close( ) method, 358, 374-376
- Code structure (class files), 31-32
- collaborative threads, 146
- commands
- appletviewer, 208
- java, 198-200
- -classpath parameter, 201
- -cs parameter, 200
- -D parameter, 207
- -debug parameter, 200
- -help parameter, 203
- -ms parameter, 201-202
- -mx parameter, 201
- -noasynchgc parameter, 202
- -noclassgc parameter, 202
- -noverify parameter, 207
- -oss parameter, 204
- -prof parameter, 202-203
- -ss parameter, 204
- -t parameter, 205-206
- -v parameter, 206-207
- -verbose parameter, 206-207
- -verbosegc parameter, 207
- -verify parameter, 207
- -verifyremote parameter, 207
- -version parameter, 203
- javac, 195-196
- -classpath parameter, 196
- -d parameter, 196
- -depend parameter, 198
- -encoding parameter, 197
- -g parameter, 197
- -J parameter, 198
- -nowarn parameter, 197
- -O parameter, 197
- -verbose parameter, 198
- javadoc, 208-212
- source comments, 209
- tags, 209-211
- JVM Instruction Set, 22-25
- comments, 209
- Commerce APIs, 465
- Communications APIs, see Java Media Kit
- compareTo( ) method, 164
- compilers
- javac, 191, 194
- class paths, 195
- command-line usage, 195-198
- javac_q, 191
- complement operator (~), 82
- COMPONENT_EVENT_MASK field, 179
- compound assignment operators, 84-85
- concat( ) method, 164
- concurrent execution paths (threads), 145-146
- concurrent servers, 377
- conditional statements, 86-88
- constant_pool region (class files), 27-28
- constants, 27-28
- constructors, 104-105
- AWTEvent class, 180
- DatagramPacket class, 354
- DatagramSocket class, 356-357
- Event class, 183-184
- EventObject class, 175
- Hashtable class, 175-176
- Number class, 160
- Object class, 161
- ServerSocket class, 371-372, 375
- String class, 162-163
- Thread class, 170-171
- consume( ) method, 180
- CONTAINER_EVENT_MASK field, 179
- contains( ) method, 176
- containsKey( ) method, 176
- continue statement, 51-52
- controlDown( ) method, 184
- conversion charts
- Boolean data type, 74
- byte data type, 72
- char data type, 73
- double data type, 75
- float data type, 74
- int data type, 72
- long data type, 73
- short data type, 71
- coordinating threads
- block serialization, 148
- class serialization, 147
- copyValueOf( ) method, 164
- countStackFrames( ) method, 171
- cross-platform issues, 14-17, 37-38
- cs parameter (java command), 200
- CTRL_MASK field, 181
- currentThread( ) method, 171
- currentTimeMillis( ) method, 168
D
- -D parameter (java command), 207
- -d parameter
- javac command, 196
- javadoc command, 212
- data encapsulation, 97
- data link layer (OSI model), 343
- data types, 70-71
- Boolean, 74
- byte, 71-72
- char, 73
- double, 75
- float, 74
- int, 72
- long, 72-73
- short, 71
- databases (JDBC), 464-465
- DatagramPacket class
- constructors, 354
- methods, 354-355
- datagrams, Java support for, 352-353
- DatagramPacket class, 354-355
- DatagramSocket class, 355-358
- MulticastSocket class, 358-360
- DatagramSocket class, 355-358
- chat application, 360, 364
- constructors, 356-357
- methods, 357-358
- DBforME project
- Client.ClientDataProj, 426-429
- Server.DataServer, 419-423
- Shared.CallbackInterface, 432
- Shared.DBAdminFrame, 433-434
- Shared.ServerInterface, 435-437
- -debug parameter
- appletviewer command, 208
- java command, 200
- debugging options, enabling, 197
- declaring
- classes, 98-99
- constructors, 104-105
- creation order, 105-108
- inheritance, 100-104
- visibility, 99-100
- threads, 127-130
- default reserved word, 52, 104
- defining threads, 128
- DELETE field, 181
- depend parameter (javac command), 198
- @deprecated tag, 210-211
- designing applications, 411-412
- assessing design, 414
- implementation, 415
- object partitioning, 413-414
- optimization, 415-416
- packaging, 412-413
- destroy( ) method, 171
- developing JavaBeans, 454
- development
- design steps, 411-412
- assessing, 414
- implementation, 415
- object partitioning, 413-414
- packages, 412-413
- goals, 408
- documentation, 410-411
- extensibility, 410
- intuitive designs, 409
- usefulness, 409-410
- optimization, 415-416
- solution example (DBforME project), 416
- architecture, 417-418
- functional stubs, 419
- implementation, 419
- requirements, 417
- source code, 419-437
- see also Certified Developer Examination
- directories (input/ouput), specifying, 196
- disabling
- byte-code verification, 207
- garbage collection, 202
- warning messages, 197
- displaying garbage collection heap, 207
- do loops, 89
- do reserved word, 52
- doc comments, 209
- docencoding parameter (javadoc command), 211
- Double data type, 28
- conversion chart, 75
- double reserved word, 53
- doubleValue( ) method, 160
- DOWN field, 181
- down-casting, 111-112
- drag-and-drop, 445
- dumpStack( ) method, 171
E
- editing JVM properties, 207
- Electronic Commerce Framework
- Commerce APIs, 465
- Internet use, 466
- obtaining, 465
- tools, 465-466
- elements( ) method, 176
- else reserved word, 53
- enabling
- byte-code verification, 207
- debugging options, 197
- execution tracing, 205-206
- internationalize coding schemes, 197
- profiling, 202
- verbose loading, 206
- -encoding parameter
- appletviewer command, 208
- javac command, 197
- javadoc command, 211
- END field, 181
- endsWith( ) method, 164
- ENTER field, 181
- Enterprise JavaBeans, 455
- enumerate( ) method, 171
- environment variables, CLASSPATH, 195
- equal operator (==), 80
- equals( ) method, 101, 161, 164
- equalsIgnoreCase( ) method, 164
- ESCAPE field, 181
- Event class, 180
- constructors, 183-184
- fields, 181-183
- methods, 184
- Event( ) method, 183
- EventObject class
- constructors, 175
- fields, 174
- methods, 175
- EventObject( ) method, 175
- evt field, 181
- exams, see practice exams
- @exception tag, 210
- exceptions, 112-113
- catching, 114
- program flow, 114
- try...catch blocks, 113
- optimization, 416
- standard exceptions, 115
- throwing, 116
- exclusive OR operator, 82
- executable regions, 25-26
- access_flags, 28-29
- attributes, 32
- Code structure, 31-32
- constant_pool, 27-28
- fields, 30
- interfaces, 30
- magic, 26
- methods, 30-31
- SourceFile structure, 32
- this_class, 29
- version, 26
- executing
- applets, 208
- classes, 32-35
- threads, 131
- concurrent execution paths, 145-146
- execution block serialization, 148
- execution environment region (JVM stack), 21
- execution tracing, enabling, 205-206
- exit( ) method, 168
- extends reserved word, 53-54
F
- Fieldref constant type, 28
- fields
- ACTION_EVENT, 181
- ACTION_EVENT_MASK, 179
- ADJUSTMENT_EVENT_MASK, 179
- ALT_MASK, 181
- arg, 181
- BACK_SPACE, 181
- CAPS_LOCK, 181
- clickCount, 181
- COMPONENT_EVENT_MASK, 179
- CONTAINER_EVENT_MASK, 179
- CTRL_MASK, 181
- DELETE, 181
- DOWN, 181
- END, 181
- ENTER, 181
- ESCAPE, 181
- evt, 181
- Fn, 181-182
- FOCUS_EVENT_MASK, 179
- GOT_FOCUS, 182
- HOME, 182
- id, 182
- INSERT, 182
- ITEM_EVENT_MASK, 179
- key, 182
- KEY_ACTION, 182
- KEY_ACTION_RELEASE, 182
- KEY_EVENT_MASK, 179
- KEY_PRESS, 182
- KEY_RELEASE, 182
- LEFT, 182
- LIST_DESELECT, 182
- LIST_SELECT, 182
- LOAD_FILE, 182
- LOST_FOCUS, 182
- MAX_PRIORITY, 170
- META_MASK, 182
- MIN_PRIORITY, 170
- modifiers, 182
- MOUSE_DOWN, 182
- MOUSE_DRAG, 182
- MOUSE_ENTER, 182
- MOUSE_EVENT_MASK, 179
- MOUSE_EXIT, 182
- MOUSE_MOTION_EVENT_MASK, 179
- MOUSE_MOVE, 182
- MOUSE_UP, 182
- NORM_PRIORITY, 170
- NUM_LOCK, 182
- PAUSE, 182
- PGDN, 182
- PGUP, 182
- PRINT_SCREEN, 183
- RESERVED_ID_MAX, 179
- RIGHT, 183
- SAVE_FILE, 183
- SCROLL_ABSOLUTE, 183
- SCROLL_BEGIN, 183
- SCROLL_END, 183
- SCROLL_LINE_DOWN, 183
- SCROLL_LINE_UP, 183
- SCROLL_LOCK, 183
- SCROLL_PAGE_DOWN, 183
- SCROLL_PAGE_UP, 183
- SHIFT_MASK, 183
- TAB, 183
- target, 183
- TEXT_EVENT_MASK, 179
- UP, 183
- when, 183
- WINDOW_DEICONIFY, 183
- WINDOW_DESTROY, 183
- WINDOW_EVENT_MASK, 179
- WINDOW_EXPOSE, 183
- WINDOW_ICONIFY, 183
- WINDOW_MOVED, 183
- fields region (class files), 30
- files (executables), 25-26
- access_flags region, 28-29
- attributes region, 32
- Code structure, 31-32
- constant_pool region, 27-28
- fields region, 30
- interfaces region, 30
- magic region, 26
- methods region, 30-31
- SourceFile structure, 32
- this_class region, 29
- version region, 26
- final method, 414
- final reserved word, 54-55, 104
- finalize( ) method, 101, 161
- finally reserved word, 55
- flags, 29
- Float constant type, 27
- float data type, 74
- float reserved word, 56
- floatValue( ) method, 160
- Fn fields, 181-182
- FOCUS_EVENT_MASK field, 179
- for loops, 88-89
- for reserved word, 56
- frame register, 20
- functional stubs, 414, 419
G
- -g parameter (javac command), 197
- garbage collection heap, 21-22
- disabling, 202
- displaying, 207
- manual, 202
- maximum size, 201
- startup size, 201
- gc( ) method, 168
- get( ) method, 176
- getAddress( ) method, 354
- getBytes( ) method, 164
- getChars( ) method, 164
- getClass( ) method, 101, 161
- getData( ) method, 355
- getID( ) method, 180
- getInetAddress( ) method, 372, 375
- getInputStream( ) method, 373
- getInterface( ) method, 359
- getLength( ) method, 355
- getLocalAddress( ) method, 357, 372
- getLocalPort( ) method, 358, 373-375
- getName( ) method, 171
- getOutputStream( ) method, 373
- getPort( ) method, 354, 373
- getPriority( ) method, 171
- getProperties( ) method, 168
- getProperty( ) method, 168
- getSecurityManager( ) method, 169
- getSoLinger( ) method, 373
- getSoTimeout( ) method, 358, 376
- getSource( ) method, 175
- getTcpNoDelay( ) method, 373
- getThreadGroup( ) method, 171
- Glasgow specification, 445
- goals of Java development, 408
- documentation, 410-411
- extensibility, 410
- intuitive designs, 409
- usefulness, 409-410
- GOT_FOCUS field, 182
- goto statement, 56-57
- graphics programming
- 2D API, 445-446
- 3D API, 446
- AVM (Admin View Module), 451
- AWT (Abstract Windowing Toolkit), 177-184, 451
- JFC (Java Foundation Classes), 442-445
- Swing Set, 444
- greater-than operator (>), 79
- greater-than-or-equal-to operator (>=), 79
- GUI programming
- AVM (Admin View Module), 451
- AWT (Abstract Windowing Toolkit), 177-184, 451
- JFC (Java Foundation Classes), 442-445
- Swing Set, 444
H
- hashCode( ) method, 101, 161, 165
- Hashtable class
- constructors, 175-176
- methods, 176-177
- Hashtable( ) method, 176
- Hello, World program, 95
- help parameter (java command), 203
- HOME field, 182
- hybrid assignment operators, 84-85
I
- id field, 182
- identityHashCode( ) method, 169
- IDL, 466
- if statement, 57
- syntax, 86-87
- implAccept( ) method, 376
- implements reserved word, 57-58
- import reserved word, 58
- indexOf( ) method, 165
- inheritance, 100-104
- Initiative campaign (100% Pure Java), 460
- input directory, specifying, 196
- INSERT field, 182
- instanceof reserved word, 59
- Instruction Set (JVM), 22-25
- int data type, 72
- int reserved word, 59
- Integer constant type, 27
- Inter-Process Communication, see IPC
- inter-thread communication, 148-149
- notify( ) method, 150
- wait( ) method, 149-150
- interface reserved word, 60
- InterfaceMethodref constant type, 28
- interfaces (JMAPI) , 108-109, 414
- Applet Integration, 452
- Base Object, 451-452
- Managed Container, 452
- Managed Protocol, 452
- SNMP, 452
- User Interface Style Guide, 450-451
- interfaces region (class files), 30
- intern( ) method, 165
- internationalize coding schemes, 197
- Internet Protocol (IP), 347-348
- interrupt( ) method, 171
- interrupted( ) method, 172
- introspection, 453-454
- intValue( ) method, 160
- IOException( ) method, 357-359
- IP (Internet Protocol), 347-348
- IPC (Inter-Process Communication), 341
- IP, 347-348
- Java datagram support, 353
- DatagramPacket class, 354-355
- DatagramSocket class, 355-358
- MulticastSocket class, 358-360
- Java socket support
- calculator application, 376-379, 382-383, 386
- ServerSocket class, 374-376
- Socket class, 371-374
- OSI model, 342
- application layer, 347
- data link layer, 343
- network layer, 344
- physical layer, 343
- presentation layer, 346
- session layer, 345
- transport layer, 345
- RMI, 387-388
- calculator application, 392-404
- client-side notification, 391-392
- registering objects, 388-390
- remote method calls, 390-391
- TCP
- guaranteed packet delivery, 350
- packet presentation, 350-351
- session support, 351-352
- TCP/IP, 369-371
- UDP, 349-350
- isAlive( ) method, 172
- isConsumed( ) method, 180
- isDaemon( ) method, 172
- isEmpty( ) method, 176
- isInterrupted( ) method, 172
- ITC (inter-thread communication), 148-149
- notify( ) method, 150
- wait( ) method, 149-150
- ITEM_EVENT_MASK field, 179
J
- -J parameter
- appletviewer command, 208
- javac command, 198
- Java Database Connectivity (JDBC), 464-465
- Java Developer Examination (Sun), 470, 569, 574-575
- practice exam #1
- answers, 489-516
- programming exercise, 472-486
- written exam, 487-488
- practice exam #2
- answers, 537-565
- programming exercise, 520-534
- written exercise, 535-536
- registration, 577-578
- study checklist, 471-472
- test-taking tips, 6-7
- topic areas, 5-6, 575-577
- Java Development Kit, see JDK
- Java Electronic Commerce Framework, see JECF
- Java Foundation Classes, see JFC
- Java IDL, 466
- Java Management API, see JMAPI
- Java Media Framework (JMF), 446
- Java Media Kit, 445-447
- 2D API, 446
- 3D API, 446
- JMF, 446
- Sound API, 447
- Speech API, 447
- Telephony API, 447
- Java Naming and Directory Interface (JNDI), 467
- Java Programmer Examination (Sun), 217-218, 569-571
- practice exam #1
- answers, 251-257
- questions, 222-251
- practice exam #2
- answers, 289-295
- questions, 260-288
- practice exam #3
- answers, 330-336
- questions, 298-329
- registration, 577-578
- study checklist, 220-221
- test-taking tips, 219-220
- testing procedure, 218-220
- topic areas, 4-7, 571-574
- Java Sound API, 447
- Java Speech API, 447
- Java stack, sizing, 204
- Java Telephony API, 447
- java tool, 198-199
- command-line usage, 199-200
- -classpath parameter, 201
- -cs parameter, 200
- -D parameter, 207
- -debug parameter, 200
- -help parameter, 203
- -ms parameter, 201-202
- -mx parameter, 201
- -noasynchgc parameter, 202
- -noclassgc parameter, 202
- -noverify parameter, 207
- -oss parameter, 204
- -prof parameter, 202-203
- -ss parameter, 204
- -t parameter, 205-206
- -v parameter, 206-207
- -verbose parameter, 206-207
- -verbosegc parameter, 207
- -verify parameter, 207
- -verifyremote parameter, 207
- -version parameter, 203
- variations, 199
- Java Virtual Machine, see JVM
- java.awt package, 177-178
- AWTEvent class
- constructors, 180
- fields, 179
- methods, 180
- Event class, 180
- constructors, 183-184
- fields, 181-183
- methods, 184
- java.lang package, 158-159
- Number class, 159
- constructors, 160
- methods, 160
- Object class, 160
- constructor, 161
- methods, 161-162
- String class
- constructors, 162-163
- methods, 164-167
- System class, 167
- fields, 168
- methods, 168-169
- Thread class, 169
- constructors, 170-171
- fields, 170
- methods, 171-173
- java.lang.Object class, 101-102
- java.net package, 353
- DatagramPacket class
- constructors, 354
- methods, 354-355
- DatagramSocket class, 355-358
- chat application, 360-364
- constructors, 356-357
- methods, 357-358
- MulticastSocket class, 358-360
- chat application, 365-369
- methods, 359-360
- ServerSocket class, 374-376
- constructors, 375
- methods, 375-376
- Socket class
- constructors, 371-372
- methods, 372-374
- java.util package, 173-174
- EventObject class
- constructors, 175
- fields, 174
- methods, 175
- Hashtable class
- constructors, 175-176
- methods, 176-177
- java_g tool, 199
- JavaBeans
- BDK, 453
- developing, 454
- Enterprise JavaBeans, 455
- Glasgow specification, 445
- packaging, 454
- visual accessibility, 453-454
- javac, 191, 194
- class paths, 195
- command-line usage, 195-198
- -classpath parameter, 196
- -d parameter, 196
- -depend parameter, 198
- -encoding parameter, 197
- -g parameter, 197
- -J parameter, 198
- -nowarn parameter, 197
- -O parameter, 197
- -verbose parameter, 198
- javac_q, 191
- see also javac
- JavaChips, 38
- javadoc, 208-209
- benefits, 411
- command-line usage, 211-212
- source comments, 209
- tags, 209-211
- class/interface documentation tags, 210
- method/field documentation tags, 210-211
- JavaPureCheck, 459
- javaw tool, 199
- javaw_g tool, 199
- JDBC (Java Database Connectivity), 464-465
- JDK (Java Development Kit), 36
- drag-and-drop support, 445
- JDBC, 464-465
- JFC
- 2D API, 445
- drag-and-drop, 445
- lightweight components, 442-444
- Swing set, 444-445
- Web site, 442
- JMAPI
- interfaces, 451-452
- User Interface Style Guide, 450-451
- Web site, 450
- JMF, 446
- JNDI, 467
- JRE, 13-15
- JVM, 11-15
- architecture, 17-25
- classes, 32-35
- cross-platform capabilities, 16-17, 37-38
- development history, 15-16
- implementations, 35-36
- properties, 207
- RMI facility, 455
- Test Suite, 36-37
- tools, 189-190
- appletviewer, 208
- java, 198-207
- javac, 191
- javadoc, 208-212
- JECF (Java Electronic Commerce Framework), 465
- Internet use, 466
- Java Commerice APIs, 465
- obtaining, 465
- tools, 465-466
- JFC (Java Foundation Classes), 442
- 2D API, 445
- drag-and-drop, 445
- lightweight components, 442-444
- Swing set, 444-445
- Web site, 442
- -Jflag parameter (javadoc command), 211
- JMAPI (Java Management API)
- interfaces
- Applet Integration, 452
- Base Object, 451
- Managed Container, 452
- Managed Notification, 452
- Managed Protocol, 452
- SNMP, 452
- User Interface Style Guide, 450-451
- Web site, 450
- JMF (Java Media Framework), 446
- JNDI (Java Naming and Directory Interface), 467
- join( ) method, 172
- joinGroup( ) method, 360
- JRE (Java Runtime Environment), 13-15
- see also JVM
- JVM (Java Virtual Machine), 11-15
- architecture, 17-18
- Garbage Collection Heap, 21-22
- Instruction Set, 22-25
- Method Storage area, 22
- registers, 19-21
- stack regions, 21
- stacks, 19-20
- classes
- executing, 32-35
- loading, 33-34
- cross-platform capabilities, 16-17, 37-38
- development history, 15-16
- implementations, 35-36
- properties, editing, 207
- see also JDK
K-L
- key field, 182
- KEY_ACTION field, 182
- KEY_ACTION_RELEASE field, 182
- KEY_EVENT_MASK field, 179
- KEY_PRESS field, 182
- KEY_RELEASE field, 182
- keys( ) method, 176
-
- lastIndexOf( ) method, 165
- layers (OSI model)
- application, 347
- data link, 343
- network, 344
- physical, 343
- presentation, 346
- session, 345
- transport, 345
- layers of indirection, 13
- leaveGroup( ) method, 360
- LEFT field, 182
- left shift operator (<<), 83
- length( ) method, 165
- less-than operator (<), 79
- less-than-or-equal-to operator (<=), 80
- lightweight components (JFC), 442-444
- LIST_DESELECT field, 182
- LIST_SELECT field, 182
- listening to ports, 353
- listings
- class construction, 106-107
- class inheritance, 102-103
- DBforME project
- Client.ClientDataProj, 426-429
- Server.DataServer, 419, 423
- Shared.CallbackInterface, 432
- Shared.DBAdminFrame, 433-434
- Shared.ServerInterface, 435-437
- RMI calculator
- callback loader, 401
- prime calculations client, 396-398
- prime server, 393-394
- prime server leader applications, 395-398
- remote notification, 399-400
- server-side push, 402-404
- server-side thread example, 132-137
- TCP/IP prime calculator client, 384-386
- TCP/IP socket server application, 378-383
- thread scheduling test
- output, 141-142
- source code, 138-141
- thread scheduling with priority, 143-145
- threadTest.java, 192-194
- UDP chat application
- multicast datagrams, 366-389
- standard datagrams, 361, 364
- wait( ) method, 149
- load( ) method, 169
- LOAD_FILE field, 182
- loading classes, 33-34
- loadLibrary( ) method, 169
- local variable region (JVM stack), 21
- logical operators, 81
- Long data type, 28, 72-73
- conversion chart, 73
- longValue( ) method, 160
- loops, 88-90
- do
- example, 52
- syntax, 89
- for, 56, 88-89
- optimizing, 415
- while, 70, 89
- LOST_FOCUS field, 182
M
- Macintosh systems, 37
- Magic Region (class files), 26
- Managed Container interfaces (JMAPI), 452
- Managed Notification interfaces (JMAPI), 452
- Managed Protocol interfaces (JMAPI), 452
- Management API
- interfaces
- Applet Integration, 452
- Base Object, 451-452
- Managed Container, 452
- Managed Protocol, 452
- SNMP, 452
- User Interface Style Guide, 450-451
- Web site, 450
- mathematical operators, 76-78
- MAX_PRIORITY field, 170
- Media Kit, 445-446
- 2D API, 446
- 3D API, 446
- Java Sound API, 447
- Java Speech API, 447
- Java Telephony API, 447
- JMF, 446
- memory
- allocation pools
- maximum size, 201
- startup size, 201
- Garbage Collection Heap, 21-22
- Method Storage area, 22
- registers, 19-20
- frame, 20
- optop, 20
- pc, 20
- vars, 21
- stacks, 19-20
- stack regions, 21
- META_MASK field, 182
- metaDown( ) method, 184
- Method Storage area (JVM), 22
- Methodref constant type, 28
- methods
- abstract( ), 108-109, 414
- accept( ), 376
- activeCount( ), 171
- arraycopy( ), 168
- AWTEvent( ), 180
- byteValue( ), 160
- calling, 390-391
- charAt( ), 164
- checkAccess( ), 171
- clear( ), 176
- clone( ), 101, 176
- CloneNotSupportedException( ), 161
- close( ), 358, 374-376
- compareTo( ), 164
- concat( ), 164
- constructors, 104-105
- consume( ), 180
- contains( ), 176
- containsKey( ), 176
- controlDown( ), 184
- copyValueOf( ), 164
- countStackFrames( ), 171
- currentThread( ), 171
- currentTimeMillis( ), 168
- destroy( ), 171
- doubleValue( ), 160
- dumpStack( ), 171
- elements( ), 176
- endsWith( ), 164
- enumerate( ), 171
- equals( ), 101, 161, 164
- equalsIgnoreCase( ), 164
- Event( ), 183
- EventObject( ), 175
- exit( ), 168
- final( ), 414
- finalize( ), 101, 161
- floatValue( ), 160
- gc( ), 168
- get( ), 176
- getAddress( ), 354
- getBytes( ), 164
- getChars( ), 164
- getClass( ), 101, 161
- getData( ), 355
- getID( ), 180
- getInetAddress( ), 372, 375
- getInputStream( ), 373
- getInterface( ), 359
- getLength( ), 355
- getLocalAddress( ), 357, 372
- getLocalPort( ), 358, 373-375
- getName( ), 171
- getOutputStream( ), 373
- getPort( ), 354, 373
- getPriority( ), 171
- getProperties( ), 168
- getProperty( ), 168
- getSecurityManager( ), 169
- getSoLinger( ), 373
- getSoTimeout( ), 358, 376
- getSource( ), 175
- getTcpNoDelay( ), 373
- getThreadGroup( ), 171
- hashCode( ), 101, 161, 165
- Hashtable( ), 176
- identityHashCode( ), 169
- implAccept( ), 376
- indexOf( ), 165
- intern( ), 165
- interrupt( ), 171
- interrupted( ), 172
- intValue( ), 160
- IOException( ), 357-359
- isAlive( ), 172
- isConsumed( ), 180
- isDaemon( ), 172
- isEmpty( ), 176
- isInterrupted( ), 172
- join( ), 172
- joinGroup( ), 360
- keys( ), 176
- lastIndexOf( ), 165
- leaveGroup( ), 360
- length( ), 165
- load( ), 169
- loadLibrary( ), 169
- longValue( ), 160
- metaDown( ), 184
- notify( ), 101, 150, 161
- notifyAll( ), 101, 161
- paramString( ), 180, 184
- put( ), 177
- receive( ), 357
- regionMatches( ), 165
- rehash( ), 177
- remove( ), 177
- replace( ), 166
- resume( ), 172
- RMI, 455
- run( ), 130-131, 172
- runFinalization( ), 169
- send( ), 360
- ServerSocket( ), 375
- setAddress( ), 355
- setDaemon( ), 172
- setData( ), 355
- setErr( ), 169
- setIn( ), 169
- setInterface( ), 359
- setLength( ), 355
- setName( ), 172
- setOut( ), 169
- setPort( ), 355
- setPriority( ), 142, 172
- setProperties( ), 169
- setSecurityManager( ), 169
- setSoLinger( ), 373
- setSoTimeout( ), 358, 374-376
- setTcpNoDelay( ), 373
- shortValue( ), 160
- size( ), 177
- sleep( ), 172
- Socket( ), 372
- start( ), 129, 173
- startsWith( ), 166
- static, 413
- stop( ), 129-130, 173
- String( ), 162-163
- substring( ), 166
- suspend( ), 173
- Thread( ), 170-171
- toCharArray( ), 166
- toLowerCase( ), 166
- toString( ), 101, 161, 166, 173-177, 180, 184, 374-376
- toUpperCase( ), 166
- translate( ), 184
- trim( ), 166
- valueOf( ), 166-167
- wait( ), 101-102, 149-150, 161
- yield( ), 173
- methods region (class files), 30-31
- MIN_PRIORITY field, 170
- modifiers
- default, 104
- final, 54-55, 104
- private, 63, 103
- public, 64, 103
- see also reserved words
- modifiers field, 182
- MOUSE_DOWN field, 182
- MOUSE_DRAG field, 182
- MOUSE_ENTER field, 182
- MOUSE_EVENT_MASK field, 179
- MOUSE_EXIT field, 182
- MOUSE_MOTION_EVENT_MASK field, 179
- MOUSE_MOVE field, 182
- MOUSE_UP field, 182
- -ms parameter (java command), 201-202
- MulticastSocket class, 358-360
- chat application, 365, 369
- methods, 359-360
- multimedia, see Media Kit
- multithreading, 137-138
- concurrent applications, 145-146
- inter-thread communication, 148-149
- notify( ) method, 150
- wait( ) method, 149-150
- mutually exclusive threads, 146
- priority, 142-145
- scheduling threads, 138, 141-142
- thread coordination
- block serialization, 148
- class serialization, 147
- mutually exclusive threads, 146
- -mx parameter (java command), 201
N
- NamedType constant type, 28
- Naming and Directory Interface, 467
- native reserved word, 60-61
- network layer (OSI model), 344
- networks
- OSI model, 342
- application layer, 347
- data link layer, 343
- network layer, 344
- physical layer, 343
- presentation layer, 346
- session layer, 345
- transport layer, 345
- ports, 352
- see also IPC; protocols
- new reserved word, 61
- New Riders Publishing, 7
- -noasynchgc parameter (java command), 202
- -noclassgc parameter (java command), 202
- -nodeprecated parameter (javadoc command), 212
- -noindex parameter (javadoc command), 212
- NORM_PRIORITY field, 170
- not operator (logical), 81
- not-equal operator (!=), 80
- notification process (RMI), 391-392
- notify( ) method, 101, 150, 161
- notifyAll( ) method, 101, 161
- -notree parameter (javadoc command), 212
- -noverify parameter (java command), 207
- -nowarn parameter (javac command), 197
- NRP (New Riders Publishing), 7
- NT operating systems, 37
- null reserved word, 61
- NUM_LOCK field, 182
- Number class, 159
- constructors, 160
- methods, 160
O
- -O parameter (javac command), 197
- Object class, 160
- constructor, 161
- methods, 101-102, 161-162
- notify( ), 150
- wait( ), 149-150
- Object Serialization, 464
- objects, 95-98
- casting, 110
- down, 111-112
- up, 112
- constructors, 104-105
- exceptions, 112-113
- catching, 113-114
- standard exceptions, 115
- throwing, 116
- inheritance, 100-104
- Object Serialization, 464
- program design, 413-414
- registering with RMI, 388-390
- Open System Interconnection, see OSI model
- operand stack region (JVM stack), 21
- operands, 75
- operators, 75-77
- arithmetic, 76-78
- assignment, 77, 84-85
- bit-manipulation, 76-77, 81-83
- AND, 82
- complement, 82
- exclusive OR, 82
- left shift, 83
- OR, 82
- right shift, 83
- right zero-filled shift, 83
- cast, 85
- new, 61
- relational, 76-81
- equal, 80
- greater than or equal to, 79
- greater-than, 79
- less than or equal to, 80
- less-than, 79
- not equal, 80
- selection, 86
- optimizing Java applications, 415-416
- optop register, 20
- or operators
- bitwise, 82
- logical, 81
- OSI (Open System Interconnection) model, 342
- application layer, 347
- data link layer, 343
- network layer, 344
- physical layer, 343
- presentation layer, 346
- session layer, 345
- transport layer, 345
- -oss parameter (java command), 204
- output directory, specifying, 196
- output path, specifying for compiled files, 196
P
- p-systems, 15-16
- package reserved word, 62
- packages, 109
- java.awt, 177-178
- AWTEvent class, 179-180
- Event class, 180-184
- java.lang, 158-159
- Number class, 159-160
- Object class, 160-162
- String class, 162-167
- System class, 167-169
- Thread class, 169-173
- java.net, 353
- DatagramPacket class, 354-355
- DatagramSocket class, 355-358
- MulticastSocket class, 358-360
- ServerSocket class, 374-376
- Socket class, 371-374
- java.util, 173-174
- EventObject class, 174-175
- Hashtable class, 175-177
- @param tag, 210
- parameters
- appletviewer command, 208
- java command
- -classpath, 201
- -cs, 200
- -D, 207
- -debug, 200
- -help, 203
- -ms, 201-202
- -mx, 201
- -noasynchgc, 202
- -noclassgc, 202
- -noverify, 207
- -oss, 204
- -prof, 202-203
- -ss, 204
- -t, 205-206
- -v, 206-207
- -verbose, 206-207
- -verbosegc, 207
- -verify, 207
- -verifyremote, 207
- -version, 203
- javac command, 195-196
- -classpath, 196
- -d, 196
- -depend, 198
- -encoding, 197
- -g, 197-198
- -nowarn, 197
- -O, 197
- -verbose, 198
- javadoc command, 211-212
- paramString( ) method, 180, 184
- paths, specifying, 196
- PAUSE field, 182
- pc register, 20
- PGDN field, 182
- PGUP field, 182
- physical layer (OSI model), 343
- platforms, 14
- cross-platform issues, 16-17, 37-38
- p-system project, 15-16
- ports
- binding, 352
- listening to, 353
- practice exams
- Sun Certified Java Developer
- exam #1, 472-516
- exam #2, 520-565
- see also Sun Certified Java Developer Examination
- Sun Certified Java Programmer
- exam #1, 222-257
- exam #2, 260-295
- exam #3, 298-336
- see also Sun Certified Java Programmer Examination
- presentation layer (OSI model), 346
- prime number calculator application, 376
- RMI, 392
- client, 396-397
- remote notification, 398-405
- server application, 395-396
- server implementation, 393-394
- server interface, 392
- TCP/IP
- client, 383-387
- server, 377-383
- primitive data types, 70-71
- Boolean, 74
- byte, 71-72
- char, 73
- double, 75
- float, 74
- int, 72
- long, 72-73
- short, 71
- PRINT_SCREEN field, 183
- priority (threads), 142-145
- private classes, 99-100
- -private parameter (javadoc command), 211
- private reserved word, 63, 103
- -prof parameter (java command), 202-203
- profiling feature, enabling, 202
- program flow, exception handling, 114
- programmer exam, see Certified Programmer Examination
- protected classes, 99-100
- -protected parameter (javadoc command), 211
- protected reserved word, 62-63
- protocols
- IP, 347-348
- TCP, 350
- guaranteed packet delivery, 350
- packet presentation, 350-351
- session support, 351-352
- TCP/IP, 369-371
- UDP, 349-350
- public classes, 99
- -public parameter (javadoc command), 211
- public reserved word, 64, 103
- put( ) method, 177
QR
- receive( ) method, 357
- regionMatches( ) method, 165
- registering
- objects with RMI, 388-390
- for Sun Java Certification Examinations, 577-578
- registers (JVM), 19-21
- frame, 20
- optop, 20
- pc, 20
- vars, 21
- rehash( ) method, 177
- relational operators, 76-81
- equal, 80
- greater than or equal to, 79
- greater-than, 79
- less than or equal to, 80
- less-than, 79
- not equal, 80
- remote byte-code verification, 207
- Remote Method Invocation, see RMI
- remove( ) method, 177
- replace( ) method, 166
- reserved words, 45-46
- abstract, 47-48
- boolean, 48
- break, 48-49
- byte, 49
- case, 49-50
- catch, 50
- char, 50
- class, 51
- continue, 51-52
- default, 52
- do, 52
- double, 53
- else, 53
- extends, 53-54
- final, 54-55
- finally, 55
- float, 56
- for, 56
- goto, 56-57
- if, 57
- implements, 57-58
- import, 58
- instanceof, 59
- int, 59
- interface, 60
- native, 60-61
- new, 61
- null, 61
- package, 62
- private, 63
- protected, 62-63
- public, 64
- return, 64
- short, 64-65
- static, 65
- super, 66
- switch, 66-67
- synchronized, 67
- this, 67
- throw, 68, 116
- throws, 68
- transient, 68
- try, 69
- void, 69
- volatile, 69
- while, 70
- RESERVED_ID_MAX field, 179
- resume( ) method, 172
- @return tag, 210
- return reserved word, 64
- RIGHT field, 183
- right shift operator (>>), 83
- right zero-filled shift operator (>>>), 83
- RMI (Remote Method Invocation), 387-388, 455
- calculator application, 392
- client application, 396-397
- remote notification, 398-404
- server application, 395-396
- server implementation, 393-394
- server interface, 392
- client-side notification, 391-392
- registering objects, 388-390
- remote method calls, 390-391
- run( ) method, 130, 172
- termination conditions, 130-131
- runFinalization( ) method, 169
- runtime environment, 13-15
S
- safe casting, 112
- SAVE_FILE field, 183
- scheduling threads, 137-142
- SCROLL_ABSOLUTE field, 183
- SCROLL_BEGIN field, 183
- SCROLL_END field, 183
- SCROLL_LINE_DOWN field, 183
- SCROLL_LINE_UP field, 183
- SCROLL_LOCK field, 183
- SCROLL_PAGE_DOWN field, 183
- SCROLL_PAGE_UP field, 183
- @see tag, 210
- selection operator, 86
- send( ) method, 360
- serialization (threads)
- block-level, 148
- class-level, 147
- server-side threads, 132-137
- ServerSocket class, 374-376
- constructors, 375
- methods, 375-376
- ServerSocket( ) method, 375
- session layer (OSI model), 345
- setAddress( ) method, 355
- setDaemon( ) method, 172
- setData( ) method, 355
- setErr( ) method, 169
- setIn( ) method, 169
- setInterface( ) method, 359
- setLength( ) method, 355
- setName( ) method, 172
- setOut( ) method, 169
- setPort( ) method, 355
- setPriority( ) method, 142, 172
- setProperties( ) method, 169
- setSecurityManager( ) method, 169
- setSoLinger( ) method, 373
- setSoTimeout( ) method, 358, 374-376
- setTcpNoDelay( ) method, 373
- SHIFT_MASK field, 183
- Shopping Cart applet (JECF), 466
- short data type, 71
- short reserved word, 64-65
- shortValue( ) method, 160
- @since tag, 210
- sites (Web)
- 100% Pure Java applications, 461-464
- Java IDL, 467
- JFC, 442
- JMAPI, 450
- JNDI, 467
- Object Serialization, 464
- Sun Certification Programs, 570
- size( ) method, 177
- sleep( ) method, 172
- SNMP (Standard Network Management Protocol), 452
- Socket class, 371-374
- constructors, 371-372
- methods, 372-374
- Socket( ) method, 372
- sockets
- calculator application, 376
- client, 383, 386
- server, 377-379, 382-383
- Java support, 371
- ServerSocket class, 374-376
- Socket class, 371-374
- Sound API, 447
- SourceFile structure (class files), 32
- specifiers, void, 69
- Speech API, 447
- -ss parameter (java command), 204
- stacks, 19-20
- sizing, 204
- stack regions, 21
- standard exceptions, 115
- Standard Network Management Protocol (SNMP), 452
- start( ) method, 129, 173
- starting threads, 128-129
- startsWith( ) method, 166
- starvation state (threads), 138
- statements
- break, 48-49
- case, 49-50
- catch, 50
- conditional, 86-88
- continue, 51-52
- finally, 55
- goto, 56-57
- if, 57, 86-87
- return, 64
- switch, 66-67, 87-88
- synchronized, 148
- try, 69, 113-114
- see also reserved words
- static methods, 413
- static reserved word, 65
- stop( ) method, 129-130, 173
- stopping threads, 129-130
- String class
- constructors, 162-163
- methods, 164-167
- String constant type, 28
- String( ) method, 162-163
- study checklists
- Certified Java Developer Examination, 471-472
- Certified Java Programmer Examination, 220-221
- substring( ) method, 166
- Sun Certified Java Developer Examination, 470, 569, 574-575
- practice exam #1
- answers, 489-516
- programming exercise, 472-486
- written exam, 487-488
- practice exam #2
- answers, 537-565
- programming exercise, 520-534
- written exercise, 535-536
- registration, 577-578
- study checklist, 471-472
- test-taking tips, 6-7
- topic areas, 5-6, 575-577
- Sun Certified Java Programmer Examination, 217-218, 569-571
- practice exam #1
- answers, 251-257
- questions, 222-251
- practice exam #2
- answers, 289-295
- questions, 260-288
- practice exam #3
- answers, 330-336
- questions, 298-329
- registration, 577-578
- study checklist, 220-221
- test-taking tips, 219-220
- testing procedure, 218-220
- topic areas, 4-7, 571-574
- super reserved word, 66
- suspend( ) method, 173
- Swing set (JFC), 444-445
- switch statement, 66-67, 87-88
- syntax, 87
- Sylvan Prometric, 218
- exam facilities, 218
- test-taking tips, 219-220
- synchronized reserved word, 67
- synchronized statement, 148
- System class, 167
- fields, 168
- methods, 168-169
T
- -t parameter (java command), 205-206
- TAB field, 183
- tags (javadoc)
- @author, 210
- @deprecated, 210-211
- @exception, 210
- @param, 210
- @return, 210
- @see, 210
- @since, 210
- @version, 210
- target field, 183
- TCP (Transmission Control Protocol)
- guaranteed packet delivery, 350
- packet presentation, 350-351
- session support, 351-352
- TCP/IP (Transmission Control Protocol/Internet Protocol), 369-371
- calculator application, 376
- client, 383-386
- server, 377-379, 382-383
- Java socket support
- ServerSocket class, 374-376
- Socket class, 371-374
- Telephony API, 447
- Test Suite (JDK), 36-37
- testing thread scheduling algorithms, 138-142
- TEXT_EVENT_MASK field, 179
- this reserved word, 67
- this_class region (class files), 29
- Thread class, 169
- constructors, 170-171
- fields, 170
- methods, 171-173
- Thread( ) method, 170-171
- threads
- advantages, 126-127
- collaborative, 146
- concurrent execution paths, 145-146
- coordinating
- block serialization, 148
- class serialization, 147
- creating, 127-130
- class definition, 128
- executing, 131
- inter-thread communication, 148-149
- notify( ) method, 150
- wait( ) method, 149-150
- mutually exclusive, 146
- priorities, 142-145
- scheduling, 137-142
- server-side example, 132-137
- starting, 128-129
- starvation state, 138
- stopping, 129-130
- threadTest.java (listing), 192-194
- throw reserved word, 68
- throwing exceptions, 116
- throws reserved word, 68
- toCharArray( ) method, 166
- toLowerCase( ) method, 166
- tools, 189-190
- appletviewer, 208
- java, 198-199
- command-line usage, 199-207
- variations, 199
- javac, 191, 194
- class paths, 195
- command-line usage, 195-198
- javadoc, 208-209
- benefits, 411
- command-line usage, 211-212
- source comments, 209
- tags, 209-211
- toString( ) method, 101, 161, 166, 173-177, 180, 184, 374-376
- toUpperCase( ) method, 166
- transient reserved word, 68
- translate( ) method, 184
- Transmission Control Protocol, see TCP
- Transmission Control Protocol/Internet Protocol, see TCP/IP
- transport layer (OSI model), 345
- trim( ) method, 166
- try statements, 69
- exception handling, 113-114
U
- UDP
- chat applications
- multicast datagrams, 365-369
- standard datagrams, 360-364
- overview, 349-350
- Unicode constant type, 27
- UNIX, 37
- unsafe casting, 111-112
- UP field, 183
- up-casting, 112
- User Interface Style Guide (JMAPI), 450-451
- utilities, 189-190
- appletviewer, 208
- java, 198-199
- command-line usage, 199-207
- variations, 199
- javac, 191, 194
- class paths, 195
- command-line usage, 195-198
- javadoc, 208-209
- benefits, 411
- command-line usage, 211-212
- source comments, 209
V
- -v parameter (java command), 206-207
- valueOf( ) method, 166-167
- variables
- environmental, 195
- optimizing, 415
- vars register, 21
- verbose loading, 206
- -verbose parameter
- java command, 206-207
- javac command, 198
- javadoc command, 212
- -verbosegc parameter (java command), 207
- -verify parameter (java command), 207
- -verifyremote parameter (java command), 207
- @version tag, 210
- -version parameter
- java command, 203
- javadoc command, 211
- version region (class files), 26
- virtual machine, see JVM
- visibility (classes), 99-100
- void reserved word, 69
- volatile reserved word, 69
W-Z
- wait( ) method, 101-102, 149-150, 161
- Wallet (JECF), 466
- warning messages, disabling, 197
- Web sites
- 100% Pure Java applications, 461-464
- Java IDL, 467
- JFC, 442
- JMAPI, 450
- JNDI, 467
- Object Serialization, 464
- Sun Certification Programs, 570
- when field, 183
- while loops, 89
- while reserved word, 70
- Windows operating systems, 37
- WINDOW_DEICONIFY field, 183
- WINDOW_DESTROY field, 183
- WINDOW_EVENT_MASK field, 179
- WINDOW_EXPOSE field, 183
- WINDOW_ICONIFY field, 183
- WINDOW_MOVED field, 183
-
- yield( ) method, 173
|