توضیحاتی در مورد کتاب Just Java 2 ™
نام کتاب : Just Java 2 ™
ویرایش : 6. ed., 5. print
عنوان ترجمه شده به فارسی : فقط جاوا 2™
سری :
نویسندگان : Linden, Peter van der
ناشر : Prentice Hall; Sun Microsystems Press
سال نشر : 2004;2007
تعداد صفحات : 844
ISBN (شابک) : 0131482114 , 9780131482111
زبان کتاب : English
فرمت کتاب : pdf
حجم کتاب : 9 مگابایت
بعد از تکمیل فرایند پرداخت لینک دانلود کتاب ارائه خواهد شد. درصورت ثبت نام و ورود به حساب کاربری خود قادر خواهید بود لیست کتاب های خریداری شده را مشاهده فرمایید.
فهرست مطالب :
Contents......Page 10
Preface......Page 20
Acknowledgments......Page 24
Part 1: Language......Page 26
Chapter 1: What Can Java Do for Me?......Page 28
What Java Does for You: Software Portability......Page 29
Why Portability Matters......Page 30
Language and Libraries......Page 32
One Size Doesn\'t Fit All......Page 37
Some Light Relief—A Java Desktop Application......Page 39
Downloading and Compiling Java......Page 42
What Is a Class?......Page 45
What Is an Object?......Page 51
Java Digital Clock Program......Page 57
Summary......Page 62
Some Light Relief—Napster and LimeWire......Page 63
Chapter 3: Primitive Types, Wrappers, and Boxing......Page 66
Literal Values......Page 67
char......Page 68
long......Page 71
byte......Page 73
Limited Accuracy of Floating Point Types......Page 74
double......Page 75
float......Page 77
Object Wrappers for Primitives......Page 78
Autoboxing and Unboxing......Page 80
Performance Implications of Autoboxing......Page 81
java.lang.Object......Page 82
java.lang.String......Page 85
Language Support for String Concatenation......Page 86
String Comparison......Page 88
Some Light Relief—Hatless Atlas......Page 90
Chapter 4: Statements and Comments......Page 92
Organizing Statements......Page 94
Expression Statements......Page 95
Selection Statements......Page 96
Looping Statements......Page 98
Transfer of Control Statements......Page 102
Comments......Page 103
Reading the Java API......Page 104
Some Light Relief—MiniScribe: The Hard Luck Hard Disk......Page 108
Chapter 5: OOP Part II—Constructors and Visibility......Page 112
Polymorphism Is a Long Word for a Short Topic......Page 113
Creating New Objects: Constructors......Page 114
More About Methods......Page 120
Variable-Arity Methods......Page 122
Packages......Page 123
How the JDK Finds Classes......Page 126
Access Modifiers......Page 128
Some Light Relief—It\'s Not Your Father\'s IBM......Page 132
Chapter 6: Static, Final, and Enumerated Types......Page 136
What Field Modifier static Means......Page 138
What Field Modifier final Means......Page 142
Why Enumerate a Type?......Page 144
Statements Updated for Enumerations......Page 146
More Complicated Enumerated Types......Page 152
Some Light Relief—The Haunted Zen Garden of Apple......Page 157
Chapter 7: Names, Operators, and Accuracy......Page 160
Punctuation Terminology......Page 161
Identifiers......Page 162
Expressions......Page 164
Operators......Page 165
Associativity......Page 173
How Accurate Are Calculations?......Page 174
Widening and Narrowing Conversions......Page 177
What Happens on Overflow?......Page 179
Some Light Relief—Furby\'s Brain Transplant......Page 181
Chapter 8: More OOP—Extending Classes......Page 184
Inheritance......Page 185
Polymorphism......Page 196
The Class Whose Name Is Class......Page 204
Exercises......Page 208
Some Light Relief—The Nerd Detection System......Page 209
Understanding and Creating Arrays......Page 210
Arrays of Arrays......Page 215
Have Array Brackets, Will Travel......Page 219
The Math Package......Page 220
Some Light Relief—Think Big (and Small)......Page 223
Chapter 10: Exceptions......Page 226
Run-time Internals: The Heap......Page 227
Garbage Collection......Page 229
Run-time Internals: The Stack......Page 233
Exceptions......Page 235
The Assert Statement......Page 246
Some Light Relief—Making an Exception for You......Page 249
Chapter 11: Interfaces......Page 252
What Problem Does an Interface Solve?......Page 253
Interface java.lang.Comparable......Page 257
Interfaces Versus Abstract Classes......Page 259
Granting Permission Through an Interface—Cloneable......Page 260
What Protected Really Means......Page 262
Using Interface Callbacks for GUI Event Handlers......Page 264
The Class Double......Page 266
Some Light Relief—The Java-Powered Toaster......Page 267
Introduction to Nested Classes......Page 272
Nested Static Classes......Page 274
Inner Member Classes......Page 276
Inner Local Classes......Page 278
Inner Anonymous Classes......Page 280
How Inner Classes Are Compiled......Page 282
The Class Character......Page 284
Exercises......Page 287
Some Light Relief—The Domestic Obfuscated Java Code Non-Competition......Page 288
Part 2: Key Libraries......Page 290
What Are Threads?......Page 292
Two Ways to Obtain a New Thread......Page 295
The Lifecycle of a Thread......Page 299
Thread Groups......Page 301
Four Kinds of Threads Programming......Page 302
Some Light Relief—The Motion Sensor Solution......Page 310
Mutually Exclusive Threads......Page 312
Communicating Mutually Exclusive Threads......Page 320
Piped I/O for Threads......Page 330
Thread Local Storage......Page 333
Package java.util.concurrent......Page 335
An Aside on Design Patterns......Page 336
Exercises......Page 337
Some Light Relief—Are You Certifiable? I Am......Page 338
Chapter 15: Explanation ......Page 342
Terminology Refresher: Parameters Versus Arguments......Page 343
The Problem that Generic Code Addresses......Page 344
What Generic Code Looks Like......Page 347
Generic Interfaces......Page 351
Bounds—Requiring a Type Parameter to Implement an Interface or Extend a Parent Class......Page 355
Some Light Relief—On Computable Numbers with an Application to the Entscheidungsproblem......Page 359
Part 3: Server-side Java......Page 364
Chapter 16: Collections......Page 366
Collection API......Page 367
List, LinkedList, and ArrayList......Page 374
Set, HashSet, and SortedSet......Page 378
The Collections Helper Class......Page 382
Wildcarding a Generic Parameter......Page 387
Generic Methods......Page 391
Summary of Collection......Page 393
Map, HashMap, and TreeMap......Page 394
Exercises......Page 402
Some Light Relief—Early Names for Java......Page 403
Chapter 17: Simple Input Output......Page 406
Getting to Know Java I/O......Page 407
Design Philosophy......Page 410
The Class java.io.File......Page 412
Keyboard I/O......Page 415
Output......Page 422
Wrapping Additional Output Classes......Page 431
Input......Page 435
Reader Wrappers......Page 438
Inputting ASCII Characters and Binary Values......Page 439
Input Stream Wrappers......Page 445
Exercises......Page 448
Some Light Relief—The Illegal Prime Number!......Page 449
Chapter 18: Advanced Input Output......Page 454
Random Access File......Page 455
Running Commands and Getting Output From Them......Page 457
Writing Objects to Disk......Page 461
New I/O Package......Page 465
Memory Mapped I/O......Page 474
File Locking......Page 477
Charsets and Endian-ness......Page 479
Exercises......Page 485
Some Light Relief—The Illegal T-shirt!......Page 486
Part 4: Client Java......Page 490
Regular Expressions And Pattern Matching......Page 492
Calendar Utilities......Page 508
Other Utility Classes......Page 514
Exercises......Page 521
Some Light Relief—Exchanging Apples And Crays......Page 522
Chapter 20: GUI Basics and Event Handling......Page 524
All About Event Handling......Page 526
Tips for Slimming Down Handler Code......Page 533
Summary of Event Handling......Page 537
Some Light Relief—The Mouse That Roared......Page 540
Chapter 21: JFC and the Swing Package......Page 544
Java Foundation Classes......Page 545
All About Controls (JComponents)......Page 549
Swing Threads—A Caution!......Page 552
Swing Components......Page 554
More About Swing Components......Page 569
Some Light Relief—The Bible Code......Page 571
Pluggable Look and Feel......Page 574
All About Containers......Page 577
Layout in a Container......Page 586
Tying up the Loose Ends......Page 594
Some Light Relief—Sky View Cafe: A High Quality Applet......Page 599
Part 5: Enterprise Java......Page 604
Chapter 23: Relational Databases and SQL......Page 606
Introduction to Relational Databases......Page 607
Primary and Foreign Keys......Page 611
Relationships......Page 612
Normal Forms......Page 615
Relational Database Glossary......Page 616
Download and Install Mckoi......Page 617
Basic SQL Primer......Page 620
Creating and Populating Tables......Page 622
Querying and Retrieving Data......Page 624
Subquery Selections......Page 627
Result Set of a SELECT Query......Page 628
Deleting Records and Tables......Page 630
SQL Prepared Statements and Stored Procedures......Page 631
Exercises......Page 632
Some Light Relief—Reading the Docs......Page 633
Chapter 24: JDBC......Page 634
Installing the Mckoi Database Software......Page 635
Running the Example Code......Page 638
Connecting to the Database......Page 640
Executing SQL Statements......Page 644
Result Sets......Page 646
Batching SQL Statements and Transactions......Page 649
Prepared Statements and Stored Procedures......Page 651
Complete Example......Page 652
Database and Result Set Metadata......Page 655
Exercises......Page 656
Heavy Light Relief—In Which “I” Spam Myself......Page 657
Chapter 25: Networking in Java......Page 664
Everything You Need To Know about TCP/IP but Failed to Learn in Kindergarten......Page 665
A Client Socket in Java......Page 680
Sending Email by Java......Page 682
A Server Socket in Java......Page 685
HTTP and Web Browsing: Retrieving HTTP Pages......Page 696
A Multithreaded HTTP Server......Page 700
A Mapped I/O HTTP Server......Page 702
Exercises......Page 704
Some Light Relief—500 Mile Limit on Email......Page 705
Overview of Servlets and JSP......Page 708
Why Use Servlets?......Page 711
Releases and Versions......Page 713
Installing the Tomcat Software......Page 716
Running the Example Servlets......Page 717
Ports and Protocols......Page 718
The HTML to Invoke a Servlet......Page 719
A Servlet and Its Request/Response......Page 722
Servlet Request......Page 723
Response to a Servlet Request......Page 724
Writing Your Own Servlet......Page 725
Servlet Operating Cycle and Threading......Page 733
Java Server Pages......Page 735
Java Beans in Servlets and JSP......Page 740
Further Reading......Page 741
Some Light Relief—Using Java to Stuff an Online Poll......Page 742
Chapter 27: XML and Java......Page 746
XML Versus HTML......Page 747
Some Rules of XML......Page 750
The Document Type Definition (DTD)......Page 751
What Is XML Used For?......Page 756
XML Versions and Glossary......Page 758
JAXP Library Contents......Page 760
Reading XML With DOM Parsers......Page 761
A Program That Uses a DOM Parser......Page 762
Reading an XML File—SAX Parsers......Page 769
A Program That Uses a SAX Parser......Page 771
The Factory Design Pattern......Page 774
Other Java XML Notes......Page 778
Further Reading......Page 779
Exercises......Page 780
Some Light Relief—View Source on Kevin’s Life......Page 781
Chapter 28: Web Services at Google and Amazon......Page 784
Web Services Introduction......Page 785
Google Web Services......Page 789
Amazon Web Services......Page 796
Conclusions......Page 802
Some Light Relief—Googlewhacking......Page 803
Appendix A: Downloading Java......Page 806
Appendix B: Powers of Two Table......Page 810
Appendix C: Codesets......Page 812
A......Page 820
B......Page 821
C......Page 822
D......Page 824
E......Page 825
F......Page 826
G......Page 827
I......Page 828
J......Page 829
L......Page 831
M......Page 832
O......Page 833
P......Page 834
R......Page 835
S......Page 836
T......Page 839
W......Page 840
Z......Page 841