Sams Teach Yourself Java 6 in 21 Days

Free Download

Authors:

ISBN: 0672329433, 978-0-672-32943-2

Size: 5 MB (5724745 bytes)

Pages: 721/721

File format:

Language:

Publishing Year:

Category:

Rogers Cadenhead, Laura Lemay0672329433, 978-0-672-32943-2

Learn at your own pace. You can work through each chapter sequentially to make sure you thoroughly understand all of the concepts and methodologies, or you can focus on specific lessons to learn the techniques that interest you most.

Table of contents :
Sams Teach Yourself Java 6 in 21 Days……Page 1
Table of Contents……Page 5
Introduction……Page 24
How This Book Is Organized……Page 25
Who Should Read This Book……Page 27
Conventions Used in This Book……Page 28
WEEK I: The Java Language……Page 30
DAY 1: Getting Started with Java……Page 32
The Java Language……Page 33
Object-Oriented Programming……Page 35
Objects and Classes……Page 37
Attributes and Behavior……Page 40
Organizing Classes and Class Behavior……Page 47
Q&A……Page 54
Quiz……Page 55
Exercises……Page 56
DAY 2: The ABCs of Programming……Page 58
Variables and Data Types……Page 59
Comments……Page 66
Literals……Page 67
Expressions and Operators……Page 71
String Arithmetic……Page 80
Summary……Page 81
Q&A……Page 82
Quiz……Page 83
Exercises……Page 84
DAY 3: Working with Objects……Page 86
Creating New Objects……Page 87
Accessing and Setting Class and Instance Variables……Page 90
Calling Methods……Page 93
References to Objects……Page 97
Casting and Converting Objects and Primitive Types……Page 99
Comparing Object Values and Classes……Page 105
Summary……Page 107
Q&A……Page 108
Quiz……Page 109
Exercises……Page 110
DAY 4: Lists, Logic, and Loops……Page 112
Arrays……Page 113
Block Statements……Page 119
if Conditionals……Page 120
switch Conditionals……Page 121
for Loops……Page 127
while and do Loops……Page 130
Breaking Out of Loops……Page 132
Quiz……Page 135
Exercises……Page 137
DAY 5: Creating Classes and Methods……Page 138
Creating Instance and Class Variables……Page 139
Creating Methods……Page 140
Creating Java Applications……Page 147
Java Applications and Command-line Arguments……Page 149
Creating Methods with the Same Name, Different Arguments……Page 151
Constructor Methods……Page 155
Overriding Methods……Page 159
Finalizer Methods……Page 163
Q&A……Page 164
Quiz……Page 165
Exercises……Page 167
DAY 6: Packages, Interfaces, and Other Class Features……Page 168
Modifiers……Page 169
Static Variables and Methods……Page 175
Final Classes, Methods, and Variables……Page 177
Abstract Classes and Methods……Page 179
Packages……Page 180
Using Packages……Page 181
Creating Your Own Packages……Page 185
Interfaces……Page 187
Creating and Extending Interfaces……Page 189
Inner Classes……Page 198
Summary……Page 200
Q&A……Page 201
Quiz……Page 202
Exercises……Page 204
DAY 7: Exceptions, Assertions, and Threads……Page 206
Exceptions……Page 207
Managing Exceptions……Page 210
Declaring Methods That Might Throw Exceptions……Page 216
Creating and Throwing Your Own Exceptions……Page 220
When and When Not to Use Exceptions……Page 223
Assertions……Page 225
Threads……Page 228
Summary……Page 235
Q&A……Page 236
Quiz……Page 237
Exercises……Page 239
WEEK II: The Java Class Library……Page 240
DAY 8: Data Structures……Page 242
Java Structures……Page 243
Generics……Page 263
Summary……Page 266
Quiz……Page 267
Exercises……Page 269
DAY 9: Working with Swing……Page 270
Creating an Application……Page 271
Working with Components……Page 279
Lists……Page 290
Summary……Page 292
Quiz……Page 293
Exercises……Page 295
DAY 10: Building a Swing Interface……Page 296
Swing Features……Page 297
Summary……Page 321
Quiz……Page 322
Exercises……Page 324
DAY 11: Arranging Components on a User Interface……Page 326
Basic Interface Layout……Page 327
Mixing Layout Managers……Page 335
Card Layout……Page 336
Grid Bag Layout……Page 344
Summary……Page 352
Q&A……Page 353
Quiz……Page 354
Exercises……Page 355
DAY 12: Responding to User Input……Page 356
Event Listeners……Page 357
Working with Methods……Page 361
Summary……Page 374
Q&A……Page 375
Quiz……Page 376
Exercises……Page 378
DAY 13: Using Color, Fonts, and Graphics……Page 380
The Graphics2D Class……Page 381
Drawing Text……Page 383
Color……Page 388
Drawing Lines and Polygons……Page 391
Q&A……Page 401
Quiz……Page 402
Exercises……Page 403
DAY 14: Developing Swing Applications……Page 404
Java Web Start……Page 405
Using Java Web Start……Page 408
Improving Performance with SwingWorker……Page 417
Summary……Page 422
Quiz……Page 423
Exercises……Page 425
WEEK III: Java Programming……Page 426
DAY 15: Working with Input and Output……Page 428
Introduction to Streams……Page 429
Byte Streams……Page 431
Filtering a Stream……Page 436
Character Streams……Page 445
Files and Filename Filters……Page 449
Summary……Page 452
Q&A……Page 453
Quiz……Page 454
Exercises……Page 455
DAY 16: Serializing and Examining Objects……Page 456
Object Serialization……Page 457
Inspecting Classes and Methods with Reflection……Page 466
Q&A……Page 472
Quiz……Page 473
Exercises……Page 475
DAY 17: Communicating Across the Internet……Page 476
Networking in Java……Page 477
The java.nio Package……Page 490
Q&A……Page 504
Quiz……Page 505
Exercises……Page 506
DAY 18: Accessing Databases with JDBC……Page 508
Java Database Connectivity……Page 509
The JDBC-ODBC Bridge……Page 510
Summary……Page 530
Quiz……Page 531
Exercises……Page 533
DAY 19: Reading and Writing RSS Feeds……Page 534
Using XML……Page 535
Designing an XML Dialect……Page 538
Processing XML with XOM……Page 539
Summary……Page 553
Quiz……Page 554
Exercises……Page 556
DAY 20: XML Web Services……Page 558
Introduction to XML-RPC……Page 559
Communicating with XML-RPC……Page 560
Choosing an XML-RPC Implementation……Page 563
Using an XML-RPC Web Service……Page 565
Creating an XML-RPC Web Service……Page 569
Q&A……Page 574
Quiz……Page 575
Exercises……Page 576
DAY 21: Writing Java Servlets and Java Server Pages……Page 578
Using Servlets……Page 579
Developing Servlets……Page 582
JSP……Page 595
JSP Standard Tag Library……Page 610
Summary……Page 617
Q&A……Page 618
Quiz……Page 619
Exercises……Page 620
Appendixes……Page 622
APPENDIX A: Using the Java Development Kit……Page 624
Choosing a Java Development Tool……Page 625
Configuring the Java Development Kit……Page 628
Using a Text Editor……Page 638
Creating a Sample Program…….Page 639
Setting Up the CLASSPATH Variable……Page 643
APPENDIX B: Programming with the Java Development Kit……Page 648
An Overview of the JDK……Page 649
The java Interpreter……Page 650
The javac Compiler……Page 652
The appletviewer Browser……Page 654
The javadoc Documentation Tool……Page 658
The jar Java File Archival Tool……Page 662
The jdb Debugger……Page 664
Using System Properties……Page 668
APPENDIX C: This Book’s Website……Page 672
A……Page 674
B……Page 678
C……Page 679
D……Page 685
E……Page 688
F……Page 690
G……Page 691
H……Page 693
I……Page 694
J……Page 696
K……Page 698
L……Page 699
M……Page 701
N……Page 706
O……Page 707
P……Page 708
R……Page 710
S……Page 711
T……Page 716
U……Page 717
V……Page 718
W……Page 719
X-Z……Page 720

Reviews

There are no reviews yet.

Be the first to review “Sams Teach Yourself Java 6 in 21 Days”
Shopping Cart
Scroll to Top