𝔖 Scriptorium
✦   LIBER   ✦

πŸ“

Java: The Complete Reference

✍ Scribed by Herbert Schildt


Publisher
McGraw-Hill Osborne Media
Year
2006
Tongue
English
Leaves
1057
Edition
7
Category
Library

⬇  Acquire This Volume

No coin nor oath required. For personal study only.

✦ Synopsis


The world's leading programming author offers comprehensive coverage of the new Java releaseThe definitive guide to Java has been fully expanded to cover every aspect of Java SE 6, the latest version of the worldAnd#39;s most popular Web programming language. This comprehensive resource contains everything you need to develop, compile, debug, and run Java applications and applets.

✦ Table of Contents


Contents......Page 8
Preface......Page 30
Part I: The Java Language......Page 34
Java’s Lineage......Page 36
The Creation of Java......Page 39
How Java Changed the Internet......Page 41
Java’s Magic: The Bytecode......Page 42
The Java Buzzwords......Page 43
The Evolution of Java......Page 46
A Culture of Innovation......Page 47
Object-Oriented Programming......Page 48
A First Simple Program......Page 54
A Second Short Program......Page 57
Two Control Statements......Page 59
Using Blocks of Code......Page 62
Lexical Issues......Page 63
The Java Class Libraries......Page 65
The Primitive Types......Page 66
Integers......Page 67
Floating-Point Types......Page 69
Characters......Page 70
Booleans......Page 71
A Closer Look at Literals......Page 72
Variables......Page 74
Type Conversion and Casting......Page 78
Automatic Type Promotion in Expressions......Page 80
Arrays......Page 81
A Few Words About Strings......Page 88
A Note to C/C++ Programmers About Pointers......Page 89
Arithmetic Operators......Page 90
The Bitwise Operators......Page 95
Relational Operators......Page 103
Boolean Logical Operators......Page 104
The ? Operator......Page 106
Using Parentheses......Page 107
Java’s Selection Statements......Page 110
Iteration Statements......Page 117
Jump Statements......Page 131
Class Fundamentals......Page 138
Declaring Objects......Page 142
Introducing Methods......Page 144
Constructors......Page 150
The this Keyword......Page 153
The finalize( ) Method......Page 154
A Stack Class......Page 155
Overloading Methods......Page 158
Using Objects as Parameters......Page 163
A Closer Look at Argument Passing......Page 165
Returning Objects......Page 167
Recursion......Page 168
Introducing Access Control......Page 171
Understanding static......Page 174
Arrays Revisited......Page 176
Introducing Nested and Inner Classes......Page 178
Exploring the String Class......Page 181
Using Command-Line Arguments......Page 183
Varargs: Variable-Length Arguments......Page 184
Inheritance Basics......Page 190
Using super......Page 196
Creating a Multilevel Hierarchy......Page 200
When Constructors Are Called......Page 203
Method Overriding......Page 204
Dynamic Method Dispatch......Page 207
Using Abstract Classes......Page 210
Using final with Inheritance......Page 213
The Object Class......Page 214
Packages......Page 216
Access Protection......Page 219
Importing Packages......Page 223
Interfaces......Page 225
Exception-Handling Fundamentals......Page 238
Uncaught Exceptions......Page 239
Using try and catch......Page 240
Multiple catch Clauses......Page 242
Nested try Statements......Page 244
throw......Page 246
throws......Page 247
finally......Page 249
Java’s Built-in Exceptions......Page 250
Creating Your Own Exception Subclasses......Page 252
Chained Exceptions......Page 254
Using Exceptions......Page 255
11 Multithreaded Programming......Page 256
The Java Thread Model......Page 257
The Main Thread......Page 259
Creating a Thread......Page 261
Creating Multiple Threads......Page 265
Using isAlive( ) and join( )......Page 266
Thread Priorities......Page 269
Synchronization......Page 271
Interthread Communication......Page 275
Suspending, Resuming, and Stopping Threads......Page 282
Using Multithreading......Page 287
Enumerations......Page 288
Type Wrappers......Page 297
Autoboxing......Page 299
Annotations (Metadata)......Page 305
I/O Basics......Page 318
Reading Console Input......Page 321
The PrintWriter Class......Page 325
Reading and Writing Files......Page 326
Applet Fundamentals......Page 329
The transient and volatile Modifiers......Page 332
Using instanceof......Page 333
Native Methods......Page 335
Using assert......Page 339
Static Import......Page 342
Invoking Overloaded Constructors Through this( )......Page 345
14 Generics......Page 348
A Simple Generics Example......Page 349
A Generic Class with Two Type Parameters......Page 355
Bounded Types......Page 357
Using Wildcard Arguments......Page 360
Creating a Generic Method......Page 367
Generic Interfaces......Page 370
Raw Types and Legacy Code......Page 372
Generic Class Hierarchies......Page 375
Erasure......Page 382
Ambiguity Errors......Page 386
Some Generic Restrictions......Page 387
Final Thoughts on Generics......Page 389
Part II: The Java Library......Page 390
The String Constructors......Page 392
Special String Operations......Page 395
Character Extraction......Page 398
String Comparison......Page 399
Searching Strings......Page 403
Modifying a String......Page 405
Data Conversion Using valueOf( )......Page 407
Changing the Case of Characters Within a String......Page 408
Additional String Methods......Page 409
StringBuffer......Page 410
StringBuilder......Page 417
16 Exploring java.lang......Page 418
Primitive Type Wrappers......Page 419
Process......Page 436
Runtime......Page 437
ProcessBuilder......Page 440
System......Page 442
Object......Page 445
Using clone( ) and the Cloneable Interface......Page 446
Class......Page 448
Math......Page 451
Thread, ThreadGroup, and Runnable......Page 455
Package......Page 462
StackTraceElement......Page 464
Enum......Page 465
The Comparable Interface......Page 466
The Readable Interface......Page 467
The java.lang Subpackages......Page 468
17 java.util Part 1: The Collections Framework......Page 470
Collections Overview......Page 471
Recent Changes to Collections......Page 472
The Collection Interfaces......Page 473
The Collection Classes......Page 481
Accessing a Collection via an Iterator......Page 491
Storing User-Defined Classes in Collections......Page 495
The RandomAccess Interface......Page 496
Working with Maps......Page 497
Comparators......Page 505
The Collection Algorithms......Page 508
Arrays......Page 513
Why Generic Collections?......Page 517
The Legacy Classes and Interfaces......Page 520
Parting Thoughts on Collections......Page 534
StringTokenizer......Page 536
BitSet......Page 538
Date......Page 540
Calendar......Page 542
GregorianCalendar......Page 545
TimeZone......Page 546
SimpleTimeZone......Page 547
Locale......Page 548
Random......Page 549
Observable......Page 551
Timer and TimerTask......Page 555
Currency......Page 557
Formatter......Page 558
Scanner......Page 573
The ResourceBundle, ListResourceBundle, and PropertyResourceBundle Classes......Page 582
Miscellaneous Utility Classes and Interfaces......Page 586
The java.util Subpackages......Page 587
The Java I/O Classes and Interfaces......Page 588
File......Page 589
The Closeable and Flushable Interfaces......Page 594
The Byte Streams......Page 595
The Character Streams......Page 611
The Console Class......Page 620
Using Stream I/O......Page 622
Serialization......Page 625
Stream Benefits......Page 631
Networking Basics......Page 632
The Networking Classes and Interfaces......Page 633
InetAddress......Page 634
TCP/IP Client Sockets......Page 636
URL......Page 638
URLConnection......Page 640
HttpURLConnection......Page 643
TCP/IP Server Sockets......Page 645
Datagrams......Page 646
Applet Basics......Page 650
Applet Architecture......Page 653
An Applet Skeleton......Page 654
Simple Applet Display Methods......Page 656
Requesting Repainting......Page 658
Using the Status Window......Page 661
The HTML APPLET Tag......Page 662
Passing Parameters to Applets......Page 663
getDocumentBase( ) and getCodeBase( )......Page 666
AppletContext and showDocument( )......Page 667
The AppletStub Interface......Page 668
Outputting to the Console......Page 669
Two Event Handling Mechanisms......Page 670
The Delegation Event Model......Page 671
Event Classes......Page 672
Sources of Events......Page 682
Event Listener Interfaces......Page 683
Using the Delegation Event Model......Page 686
Adapter Classes......Page 692
Inner Classes......Page 693
23 Introducing the AWT: Working with Windows, Graphics, and Text......Page 696
AWT Classes......Page 697
Window Fundamentals......Page 699
Working with Frame Windows......Page 700
Creating a Frame Window in an Applet......Page 701
Creating a Windowed Program......Page 707
Working with Graphics......Page 709
Working with Color......Page 715
Setting the Paint Mode......Page 718
Working with Fonts......Page 719
Managing Text Output Using FontMetrics......Page 724
Control Fundamentals......Page 734
Labels......Page 735
Using Buttons......Page 737
Applying Check Boxes......Page 740
CheckboxGroup......Page 742
Choice Controls......Page 744
Using Lists......Page 746
Managing Scroll Bars......Page 749
Using a TextField......Page 752
Using a TextArea......Page 754
Understanding Layout Managers......Page 756
Menu Bars and Menus......Page 770
Dialog Boxes......Page 775
FileDialog......Page 780
Handling Events by Extending AWT Components......Page 781
File Formats......Page 788
Image Fundamentals: Creating, Loading, and Displaying......Page 789
ImageObserver......Page 791
Double Buffering......Page 792
MediaTracker......Page 795
ImageProducer......Page 798
ImageConsumer......Page 800
ImageFilter......Page 803
Cell Animation......Page 816
Additional Imaging Classes......Page 819
26 The Concurrency Utilities......Page 820
The Concurrent API Packages......Page 821
Using Synchronization Objects......Page 822
Using an Executor......Page 834
The TimeUnit Enumeration......Page 839
Locks......Page 841
Atomic Operations......Page 844
The Concurrency Utilities Versus Java’s Traditional Approach......Page 845
The Core Java API Packages......Page 846
NIO......Page 848
Regular Expression Processing......Page 858
Reflection......Page 866
Remote Method Invocation (RMI)......Page 870
Text Formatting......Page 873
Part III: Software Development Using Java......Page 878
What Is a Java Bean?......Page 880
Introspection......Page 881
Bound and Constrained Properties......Page 883
The Java Beans API......Page 884
A Bean Example......Page 887
The Origins of Swing......Page 892
Two Key Swing Features......Page 893
The MVC Connection......Page 894
Components and Containers......Page 895
The Swing Packages......Page 896
A Simple Swing Application......Page 897
Event Handling......Page 901
Create a Swing Applet......Page 904
Painting in Swing......Page 906
JLabel and ImageIcon......Page 912
JTextField......Page 914
The Swing Buttons......Page 916
JTabbedPane......Page 924
JScrollPane......Page 926
JList......Page 928
JComboBox......Page 931
Trees......Page 933
JTable......Page 937
Continuing Your Exploration of Swing......Page 939
Background......Page 940
Using Tomcat for Servlet Development......Page 941
A Simple Servlet......Page 943
The javax.servlet Package......Page 944
Reading Servlet Parameters......Page 948
The javax.servlet.http Package......Page 950
Handling HTTP Requests and Responses......Page 955
Using Cookies......Page 958
Session Tracking......Page 960
Part IV: Applying......Page 962
32 Financial Applets and Servlets......Page 964
Finding the Payments for a Loan......Page 965
Finding the Future Value of an Investment......Page 973
Finding the Initial Investment Required to Achieve a Future Value......Page 976
Finding the Initial Investment Needed for a Desired Annuity......Page 980
Finding the Maximum Annuity for a Given Investment......Page 984
Finding the Remaining Balance on a Loan......Page 988
Creating Financial Servlets......Page 992
Some Things to Try......Page 996
33 Creating a Download Manager in Java......Page 998
An Overview of the Download Manager......Page 999
The Download Class......Page 1000
The ProgressRenderer Class......Page 1008
The DownloadsTableModel Class......Page 1009
The DownloadManager Class......Page 1013
Compiling and Running the Download Manager......Page 1022
Enhancing the Download Manager......Page 1023
The javadoc Tags......Page 1024
@deprecated......Page 1025
@return......Page 1026
@throws......Page 1027
An Example that Uses Documentation Comments......Page 1028
A......Page 1030
B......Page 1032
C......Page 1033
D......Page 1035
E......Page 1036
F......Page 1038
G......Page 1039
H......Page 1041
I......Page 1042
J......Page 1044
L......Page 1045
M......Page 1046
N......Page 1047
O......Page 1048
P......Page 1049
R......Page 1050
S......Page 1051
T......Page 1054
V......Page 1056
Z......Page 1057

✦ Subjects


Π‘ΠΈΠ±Π»ΠΈΠΎΡ‚Π΅ΠΊΠ°;ΠšΠΎΠΌΠΏΡŒΡŽΡ‚Π΅Ρ€Π½Π°Ρ Π»ΠΈΡ‚Π΅Ρ€Π°Ρ‚ΡƒΡ€Π°;Java;


πŸ“œ SIMILAR VOLUMES


Java: The Complete Reference
✍ Herbert Schildt πŸ“‚ Library πŸ“… 2021 πŸ› McGraw-Hill Education 🌐 English

<p><b>The Definitive Java Programming Guide</b></p><p>Fully updated for <i>Java SE 17, Javaβ„’: The Complete Reference, Twelfth Edition</i> explains how to develop, compile, debug, and run Java programs. Best-selling programming author Herb Schildt covers the entire Java language, including its syntax

Java: The Complete Reference
✍ Herbert Schildt πŸ“‚ Library πŸ“… 2021 πŸ› McGraw-Hill Education 🌐 English

<p><b>The Definitive Java Programming Guide</b></p><p>Fully updated for <i>Java SE 17, Javaβ„’: The Complete Reference, Twelfth Edition</i> explains how to develop, compile, debug, and run Java programs. Best-selling programming author Herb Schildt covers the entire Java language, including its syntax

Java: The Complete Reference
✍ Herbert Schildt πŸ“‚ Library πŸ“… 2017 πŸ› McGraw-Hill Education 🌐 English

<p><b>The Definitive Java Programming Guide</b></p><p>Fully updated for Java SE 9, <i>Java: The Complete Reference, Tenth Edition</i> explains how to develop, compile, debug, and run Java programs. Bestselling programming author Herb Schildt covers the entire Java language, including its syntax, key

Java: The Complete Reference
✍ Herbert Schildt πŸ“‚ Library πŸ“… 2014 πŸ› McGraw-Hill Osborne 🌐 English

<h4>The Definitive Java Programming Guide</h4> <p>Fully updated for Java SE 8, <i>Java: The Complete Reference</i>, Ninth Edition explains how to develop, compile, debug, and run Java programs. Bestselling programming author Herb Schildt covers the entire Java language, including its syntax, keyword

Java: The Complete Reference
✍ Herbert Schildt πŸ“‚ Library πŸ“… 2017 πŸ› McGraw-Hill Education 🌐 English

<p><b>The Definitive Java Programming Guide</b></p><p>Fully updated for Java SE 9, <i>Java: The Complete Reference, Tenth Edition</i> explains how to develop, compile, debug, and run Java programs. Bestselling programming author Herb Schildt covers the entire Java language, including its syntax, key