Muutke küpsiste eelistusi

E-raamat: Java: A Beginner's Guide, Sixth Edition (INKLING CH)

  • Formaat: 728 pages
  • Sari: Beginner's Guide
  • Ilmumisaeg: 09-May-2014
  • Kirjastus: McGraw-Hill Professional
  • Keel: eng
  • ISBN-13: 9780071809269
Teised raamatud teemal:
  • Formaat - EPUB+DRM
  • Hind: 37,44 €*
  • * hind on lõplik, st. muud allahindlused enam ei rakendu
  • Lisa ostukorvi
  • Lisa soovinimekirja
  • See e-raamat on mõeldud ainult isiklikuks kasutamiseks. E-raamatuid ei saa tagastada.
  • Formaat: 728 pages
  • Sari: Beginner's Guide
  • Ilmumisaeg: 09-May-2014
  • Kirjastus: McGraw-Hill Professional
  • Keel: eng
  • ISBN-13: 9780071809269
Teised raamatud teemal:

DRM piirangud

  • Kopeerimine (copy/paste):

    ei ole lubatud

  • Printimine:

    ei ole lubatud

  • Kasutamine:

    Digitaalõiguste kaitse (DRM)
    Kirjastus on väljastanud selle e-raamatu krüpteeritud kujul, mis tähendab, et selle lugemiseks peate installeerima spetsiaalse tarkvara. Samuti peate looma endale  Adobe ID Rohkem infot siin. E-raamatut saab lugeda 1 kasutaja ning alla laadida kuni 6'de seadmesse (kõik autoriseeritud sama Adobe ID-ga).

    Vajalik tarkvara
    Mobiilsetes seadmetes (telefon või tahvelarvuti) lugemiseks peate installeerima selle tasuta rakenduse: PocketBook Reader (iOS / Android)

    PC või Mac seadmes lugemiseks peate installima Adobe Digital Editionsi (Seeon tasuta rakendus spetsiaalselt e-raamatute lugemiseks. Seda ei tohi segamini ajada Adober Reader'iga, mis tõenäoliselt on juba teie arvutisse installeeritud )

    Seda e-raamatut ei saa lugeda Amazon Kindle's. 

Explains the origins of Java, how it relates to object-oriented programming, the basics of Java programming, new features of Java SE 8, and such advanced topics as multithreaded programming, generics, and Swing.

Essential Java Programming Skills--Made Easy!

Fully updated for Java Platform, Standard Edition 8 (Java SE 8), Java: A Beginner's Guide, Sixth Edition gets you started programming in Java right away. Bestselling programming author Herb Schildt begins with the basics, such as how to create, compile, and run a Java program. He then moves on to the keywords, syntax, and constructs that form the core of the Java language. This Oracle Press resource also covers some of Java's more advanced features, including multithreaded programming, generics, and Swing. Of course, new Java SE 8 features such as lambda expressions and default interface methods are described. An introduction to JavaFX, Java's newest GUI, concludes this step-by-step tutorial.

Designed for Easy Learning:

  • Key Skills & Concepts -- Chapter-opening lists of specific skills covered in the chapter
  • Ask the Expert -- Q&A sections filled with bonus information and helpful tips
  • Try This -- Hands-on exercises that show you how to apply your skills
  • Self Tests -- End-of-chapter quizzes to reinforce your skills
  • Annotated Syntax -- Example code with commentary that describes the programming techniques being illustrated

The book's code examples are available FREE for download.

Introduction xix
1 Java Fundamentals
1(30)
The Origins of Java
3(2)
How Java Relates to C and C++
4(1)
How Java Relates to C#
4(1)
Java's Contribution to the Internet
5(1)
Java Applets
5(1)
Security
5(1)
Portability
6(1)
Java's Magic: The Bytecode
6(1)
The Java Buzzwords
7(1)
Object-Oriented Programming
8(2)
Encapsulation
9(1)
Polymorphism
9(1)
Inheritance
10(1)
Obtaining the Java Development Kit
10(2)
A First Simple Program
12(4)
Entering the Program
12(1)
Compiling the Program
13(1)
The First Sample Program Line by Line
13(3)
Handling Syntax Errors
16(1)
A Second Simple Program
16(2)
Another Data Type
18(2)
Try This 1-1 Converting Gallons to Liters
20(1)
Two Control Statements
21(3)
The if Statement
21(2)
The for Loop
23(1)
Create Blocks of Code
24(2)
Semicolons and Positioning
26(1)
Indentation Practices
26(1)
Try This 1-2 Improving the Gallons-to-Liters Converter
27(1)
The Java Keywords
28(1)
Identifiers in Java
29(1)
The Java Class Libraries
29(1)
Chapter 1 Self Test
30(1)
2 Introducing Data Types and Operators
31(32)
Why Data Types Are Important
32(1)
Java's Primitive Types
32(5)
Integers
33(2)
Floating-Point Types
35(1)
Characters
35(2)
The Boolean Type
37(1)
Try This 2-1 How Far Away Is the Lightning? !
38(1)
Literals
39(3)
Hexadecimal, Octal, and Binary Literals
40(1)
Character Escape Sequences!
40(1)
String Literals
41(1)
A Closer Look at Variables
42(1)
Initializing a Variable
42(1)
Dynamic Initialization
43(1)
The Scope and Lifetime of Variables
43(3)
Operators
46(1)
Arithmetic Operators
46(2)
Increment and Decrement
47(1)
Relational and Logical Operators
48(2)
Short-Circuit Logical Operators
50(1)
The Assignment Operator
51(1)
Shorthand Assignments
51(2)
Type Conversion in Assignments
53(1)
Casting Incompatible Types
54(2)
Operator Precedence
56(1)
Try This 2-2 Display a Truth Table for the Logical Operators
57(1)
Expressions
58(2)
Type Conversion in Expressions
58(2)
Spacing and Parentheses
60(1)
Chapter 2 Self Test
60(3)
3 Program Control Statements
63(40)
Input Characters from the Keyboard
64(1)
The if Statement
65(2)
Nested ifs
67(1)
The if-else-if Ladder
68(1)
The switch Statement
69(3)
Nested switch Statements
72(1)
Try This 3-1 Start Building a Java Help System
73(2)
The for Loop
75(2)
Some Variations on the for Loop
77(1)
Missing Pieces
78(1)
The Infinite Loop
79(1)
Loops with No Body
79(1)
Declaring Loop Control Variables Inside the for Loop
80(1)
The Enhanced for Loop
81(1)
The while Loop
81(2)
The do-while Loop
83(2)
Try This 3-2 Improve the Java Help System
85(3)
Use break to Exit a Loop
88(1)
Use break as a Form of goto
89(5)
Use continue
94(1)
Try This 3-3 Finish the Java Help System
95(4)
Nested Loops
99(1)
Chapter 3 Self Test
100(3)
4 Introducing Classes, Objects, and Methods
103(32)
Class Fundamentals
104(4)
The General Form of a Class
105(1)
Defining a Class
106(2)
How Objects Are Created
108(1)
Reference Variables and Assignment
109(1)
Methods
110(2)
Adding a Method to the Vehicle Class
110(2)
Returning from a Method
112(1)
Returning a Value
113(2)
Using Parameters
115(4)
Adding a Parameterized Method to Vehicle
117(2)
Try This 4-1 Creating a Help Class
119(5)
Constructors
124(2)
Parameterized Constructors
126(1)
Adding a Constructor to the Vehicle Class
126(2)
The new Operator Revisited
128(1)
Garbage Collection
128(1)
The finalize() Method
129(1)
Try This 4-2 Demonstrate Garbage Collection and Finalization
130(2)
The this Key word
132(2)
Chapter 4 Self Test
134(1)
5 More Data Types and Operators
135(46)
Arrays
136(4)
One-Dimensional Arrays
137(3)
Try This 5-1 Sorting an Array
140(2)
Multidimensional Arrays
142(1)
Two-Dimensional Arrays
142(1)
Irregular Arrays
143(2)
Arrays of Three or More Dimensions
144(1)
Initializing Multidimensional Arrays
144(1)
Alternative Array Declaration Syntax
145(1)
Assigning Array References
146(1)
Using the length Member
147(2)
Try This 5-2 A Queue Class
149(4)
The For-Each Style for Loop
153(5)
Iterating Over Multidimensional Arrays
156(2)
Applying the Enhanced for
158(1)
Strings
158(7)
Constructing Strings
159(1)
Operating on Strings
160(2)
Arrays of Strings
162(1)
Strings Are Immutable
162(2)
Using a String to Control a switch Statement
164(1)
Using Command-Line Arguments
165(1)
The Bitwise Operators
166(8)
The Bitwise AND, OR, XOR, and NOT Operators
167(4)
The Shift Operators
171(2)
Bitwise Shorthand Assignments
173(1)
Try This 5-3 A ShowBits Class
174(2)
The ? Operator
176(2)
Chapter 5 Self Test
178(3)
6 A Closer Look at Methods and Classes
181(44)
Controlling Access to Class Members
182(5)
Java's Access Modifiers
183(4)
Try This 6-1 Improving the Queue Class
187(1)
Pass Objects to Methods
188(4)
How Arguments Are Passed
190(2)
Returning Objects
192(2)
Method Overloading
194(5)
Overloading Constructors
199(2)
Try This 6-2 Overloading the Queue Constructor
201(3)
Recursion
204(2)
Understanding static
206(4)
Static Blocks
209(1)
Try This 6-3 The Quicksort
210(3)
Introducing Nested and Inner Classes
213(3)
Varargs: Variable-Length Arguments
216(6)
Varargs Basics
217(3)
Overloading Varargs Methods
220(1)
Varargs and Ambiguity
221(1)
Chapter 6 Self Test
222(3)
7 Inheritance
225(42)
Inheritance Basics
226(3)
Member Access and Inheritance
229(3)
Constructors and Inheritance
232(2)
Using super to Call Superclass Constructors
234(4)
Using super to Access Superclass Members
238(1)
Try This 7-1 Extending the Vehicle Class
239(3)
Creating a Multilevel Hierarchy
242(2)
When Are Constructors Executed?
244(2)
Superclass References and Subclass Objects
246(4)
Method Overriding
250(3)
Overridden Methods Support Polymorphism
253(2)
Why Overridden Methods?
255(4)
Applying Method Overriding to TwoDShape
255(4)
Using Abstract Classes
259(4)
Using final
263(2)
final Prevents Overriding
263(1)
final Prevents Inheritance
263(1)
Using final with Data Members
264(1)
The Object Class
265(1)
Chapter 7 Self Test
266(1)
8 Packages and Interfaces
267(32)
Packages
268(4)
Defining a Package
269(1)
Finding Packages and CLASSPATH
270(1)
A Short Package Example
270(2)
Packages and Member Access
272(2)
A Package Access Example
273(1)
Understanding Protected Members
274(2)
Importing Packages
276(2)
Java's Class Library Is Contained in Packages
278(1)
Interfaces
278(1)
Implementing Interfaces
279(4)
Using Interface References
283(2)
Try This 8-1 Creating a Queue Interface
285(5)
Variables in Interfaces
290(1)
Interfaces Can Be Extended
291(1)
Default Interface Methods
292(5)
Default Method Fundamentals
293(2)
A More Practical Example of a Default Method
295(1)
Multiple Inheritance Issues
296(1)
Use static Methods in an Interface
297(1)
Final Thoughts on Packages and Interfaces
298(1)
Chapter 8 Self Test
298(1)
9 Exception Handling
299(30)
The Exception Hierarchy
301(1)
Exception Handling Fundamentals
301(3)
Using try and catch
302(1)
A Simple Exception Example
302(2)
The Consequences of an Uncaught Exception
304(3)
Exceptions Enable You to Handle Errors Gracefully
306(1)
Using Multiple catch Statements
307(1)
Catching Subclass Exceptions
308(1)
Try Blocks Can Be Nested
309(1)
Throwing an Exception
310(2)
Rethrowing an Exception
311(1)
A Closer Look at Throwable
312(2)
Using finally
314(2)
Using throws
316(1)
Three Recently Added Exception Features
317(2)
Java's Built-in Exceptions
319(2)
Creating Exception Subclasses
321(2)
Try This 9-1 Adding Exceptions to the Queue Class
323(4)
Chapter 9 Self Test
327(2)
10 Using I/O
329(42)
Java's I/O Is Built upon Streams
331(1)
Byte Streams and Character Streams
331(1)
The Byte Stream Classes
331(1)
The Character Stream Classes
332(1)
The Predefined Streams
333(1)
Using the Byte Streams
334(3)
Reading Console Input
334(2)
Writing Console Output
336(1)
Reading and Writing Files Using Byte Streams
337(6)
Inputting from a File
337(4)
Writing to a File
341(2)
Automatically Closing a File
343(3)
Reading and Writing Binary Data
346(3)
Try This 10-1 A File Comparison Utility
349(1)
Random-Access Files
350(3)
Using Java's Character-Based Streams
353(5)
Console Input Using Character Streams
353(4)
Console Output Using Character Streams
357(1)
File I/O Using Character Streams
358(3)
Using a File Writer
358(1)
Using a FileReader
359(2)
Using Java's Type Wrappers to Convert Numeric Strings
361(2)
Try This 10-2 Creating a Disk-Based Help System
363(7)
Chapter 10 Self Test
370(1)
11 Multithreaded Programming
371(38)
Multithreading Fundamentals
372(1)
The Thread Class and Runnable Interface
373(1)
Creating a Thread
374(5)
Some Simple Improvements
377(2)
Try This 11-1 Extending Thread
379(2)
Creating Multiple Threads
381(3)
Determining When a Thread Ends
384(3)
Thread Priorities
387(3)
Synchronization
390(1)
Using Synchronized Methods
390(3)
The synchronized Statement
393(3)
Thread Communication Using notify(), wait(), and notify All()
396(6)
An Example That Uses wait() and notify()
397(5)
Suspending, Resuming, and Stopping Threads
402(4)
Try This 11-2 Using the Main Thread
406(2)
Chapter 11 Self Test
408(1)
12 Enumerations, Autoboxing, Static Import, and Annotations
409(30)
Enumerations
410(3)
Enumeration Fundamentals
411(2)
Java Enumerations Are Class Types
413(1)
The values() and valueOf() Methods
413(2)
Constructors, Methods, Instance Variables, and Enumerations
415(2)
Two Important Restrictions
417(1)
Enumerations Inherit Enum
417(2)
Try This 12-1 A Computer-Controlled Traffic Light
419(5)
Autoboxing
424(1)
Type Wrappers
424(2)
Autoboxing Fundamentals
426(1)
Autoboxing and Methods
427(2)
Autoboxing/Unboxing Occurs in Expressions
429(2)
A Word of Warning
430(1)
Static Import
431(3)
Annotations (Metadata)
434(2)
Chapter 12 Self Test
436(3)
13 Generics
439(38)
Generics Fundamentals
440(1)
A Simple Generics Example
441(7)
Generics Work Only with Reference Types
445(1)
Generic Types Differ Based on Their Type Arguments
445(1)
A Generic Class with Two Type Parameters
446(1)
The General Form of a Generic Class
447(1)
Bounded Types
448(3)
Using Wildcard Arguments
451(3)
Bounded Wildcards
454(3)
Generic Methods
457(2)
Generic Constructors
459(1)
Generic Interfaces
460(2)
Try This 13-1 Create a Generic Queue
462(5)
Raw Types and Legacy Code
467(3)
Type Inference with the Diamond Operator
470(1)
Erasure
471(1)
Ambiguity Errors
472(1)
Some Generic Restrictions
473(2)
Type Parameters Can't Be Instantiated
473(1)
Restrictions on Static Members
473(1)
Generic Array Restrictions
473(2)
Generic Exception Restriction
475(1)
Continuing Your Study of Generics
475(1)
Chapter 13 Self Test
475(2)
14 Lambda Expressions and Method References
477(34)
Introducing Lambda Expressions
478(9)
Lambda Expression Fundamentals
479(1)
Functional Interfaces
480(2)
Lambda Expressions in Action
482(5)
Block Lambda Expressions
487(1)
Generic Functional Interfaces
488(2)
Try This 14-1 Pass a Lambda Expression as an Argument
490(5)
Lambda Expressions and Variable Capture
495(1)
Throw an Exception from Within a Lambda Expression
496(2)
Method References
498(6)
Method References to static Methods
498(2)
Method References to Instance Methods
500(4)
Constructor References
504(3)
Predefined Functional Interfaces
507(2)
Chapter 14 Self Test
509(2)
15 Applets, Events, and Miscellaneous Topics
511(30)
Applet Basics
512(3)
Applet Organization and Essential Elements
515(1)
The Applet Architecture
516(1)
A Complete Applet Skeleton
516(1)
Applet Initialization and Termination
517(1)
Requesting Repainting
518(1)
The update() Method
519(1)
Try This 15-1 A Simple Banner Applet
519(4)
Using the Status Window
523(1)
Passing Parameters to Applets
524(1)
The Applet Class
525(2)
Event Handling
527(1)
The Delegation Event Model
528(1)
Events
528(2)
Event Sources
528(1)
Event Listeners
528(1)
Event Classes
529(1)
Event Listener Interfaces
529(1)
Using the Delegation Event Model
530(4)
Handling Mouse and Mouse Motion Events
531(1)
A Simple Mouse Event Applet
531(3)
More Java Keywords
534(4)
The transient and volatile Modifiers
535(1)
instanceof
535(1)
strictfp
535(1)
assert
536(1)
Native Methods
537(1)
Chapter 15 Self Test
538(3)
16 Introducing Swing
541(38)
The Origins and Design Philosophy of Swing
543(2)
Components and Containers
545(2)
Components
545(1)
Containers
546(1)
The Top-Level Container Panes
546(1)
Layout Managers
547(1)
A First Simple Swing Program
547(6)
The First Swing Example Line by Line
549(4)
Use JButton
553(4)
Work with JTextField
557(3)
Create a JCheckBox
560(4)
Work with JList
564(4)
Try This 16-1 A Swing-Based File Comparison Utility
568(5)
Use Anonymous Inner Classes or Lambda Expressions to Handle Events
573(2)
Create a Swing Applet
575(2)
Chapter 16 Self Test
577(2)
17 Introducing JavaFX
579(36)
JavaFX Basic Concepts
581(2)
The JavaFX Packages
581(1)
The Stage and Scene Classes
581(1)
Nodes and Scene Graphs
582(1)
Layouts
582(1)
The Application Class and the Life-cycle Methods
582(1)
Launching a JavaFX Application
583(1)
A JavaFX Application Skeleton
583(3)
Compiling and Running a JavaFX Program
586(1)
The Application Thread
587(1)
A Simple JavaFX Control: Label
587(2)
Using Buttons and Events
589(5)
Event Basics
590(1)
Introducing the Button Control
590(1)
Demonstrating Event Handling and the Button
591(3)
Three More JavaFX Controls
594(4)
CheckBox
594(4)
Try This 17-1 Use the CheckBox Indeterminate State
598(9)
ListView
599(5)
TextField
604(3)
Introducing Effects and Transforms
607(6)
Effects
607(2)
Transforms
609(1)
Demonstrating Effects and Transforms
610(3)
What Next?
613(1)
Chapter 17 Self Test
614(1)
A Answers to Self Tests
615(58)
Chapter 1 Java Fundamentals
616(2)
Chapter 2 Introducing Data Types and Operators
618(1)
Chapter 3 Program Control Statements
619(3)
Chapter 4 Introducing Classes, Objects, and Methods
622(1)
Chapter 5 More Data Types and Operators
623(4)
Chapter 6 A Closer Look at Methods and Classes
627(5)
Chapter 7 Inheritance
632(2)
Chapter 8 Packages and Interfaces
634(2)
Chapter 9 Exception Handling
636(3)
Chapter 10 Using I/O
639(3)
Chapter 11 Multithreaded Programming
642(2)
Chapter 12 Enumerations, Autoboxing, Static Import, and Annotations
644(4)
Chapter 13 Generics
648(5)
Chapter 14 Lambda Expressions and Method References
653(3)
Chapter 15 Applets, Events, and Miscellaneous Topics
656(5)
Chapter 16 Introducing Swing
661(6)
Chapter 17 Introducing JavaFX
667(6)
B Using Java's Documentation Comments
673(8)
The javadoc Tags
674(4)
@author
675(1)
{@code}
675(1)
@deprecated
675(1)
{@docRoot}
675(1)
@exception
675(1)
{@inheritDoc}
676(1)
{@link}
676(1)
{@linkplain}
676(1)
{@literal}
676(1)
@param
676(1)
@return
676(1)
@see
677(1)
@serial
677(1)
@serialData
677(1)
@serialField
677(1)
@since
677(1)
@throws
678(1)
{@value}
678(1)
@version
678(1)
The General Form of a Documentation Comment
678(1)
What javadoc Outputs
679(1)
An Example That Uses Documentation Comments
679(2)
Index 681
Herbert Schildt is a world leading programming author. He is an authority on the C, C++, Java, and C# programming languages, and a master Windows programmer. His programming books have sold more than three million copies worldwide and have been translated into all major foreign languages. He is the author of numerous best sellers including C: The Complete Reference, Java 2: The Complete Reference, Java 2: A Beginner's Guide, C#: A Beginner's Guide, and many more. Schildt holds a master's degree in computer science from the University of Illinois.