Book description
The Definitive Java Programming Guide
In Java: The Complete Reference, Eighth Edition, bestselling programming author Herb Schildt shows you everything you need to develop, compile, debug, and run Java programs. Updated for Java Platform, Standard Edition 7 (Java SE 7), this comprehensive volume covers the entire Java language, including its syntax, keywords, and fundamental programming principles. You'll also find information on key elements of the Java API library. JavaBeans, servlets, applets, and Swing are examined and real-world examples demonstrate Java in action. In addition, new Java SE 7 features such as try-with-resources, strings in switch, type inference with the diamond operator, NIO.2, and the Fork/Join Framework are discussed in detail.
Coverage includes:
- Data types and operators
- Control statements
- Classes and objects
- Constructors and methods
- Method overloading and overriding
- Interfaces and packages
- Inheritance
- Exception handling
- Generics
- Autoboxing
- Enumerations
- Annotations
- The try-with-resources statement
- Varargs
- Multithreading
- The I/O classes
- Networking
- The Collections Framework
- Applets and servlets
- JavaBeans
- AWT and Swing
- The Concurrent API
- Much, much more
Table of contents
- Cover Page
- Java: The Complete Reference™
- Copyright Page
- About the Author
- Contents at a Glance
- Contents
- Preface
-
PART I The Java Language
- CHAPTER 1 The History and Evolution of Java
- CHAPTER 2 An Overview of Java
- CHAPTER 3 Data Types, Variables, and Arrays
- CHAPTER 4 Operators
- CHAPTER 5 Control Statements
- CHAPTER 6 Introducing Classes
-
CHAPTER 7 A Closer Look at Methods and Classes
- Overloading Methods
- Using Objects as Parameters
- A Closer Look at Argument Passing
- Returning Objects
- Recursion
- Introducing Access Control
- Understanding static
- Introducing final
- Arrays Revisited
- Introducing Nested and Inner Classes
- Exploring the String Class
- Using Command-Line Arguments
- Varargs: Variable-Length Arguments
- CHAPTER 8 Inheritance
- CHAPTER 9 Packages and Interfaces
- CHAPTER 10 Exception Handling
- CHAPTER 11 Multithreaded Programming
- CHAPTER 12 Enumerations, Autoboxing, and Annotations (Metadata)
-
CHAPTER 13 I/O, Applets, and Other Topics
- I/O Basics
- Reading Console Input
- Writing Console Output
- The PrintWriter Class
- Reading and Writing Files
- Automatically Closing a File
- Applet Fundamentals
- The transient and volatile Modifiers
- Using instanceof
- strictfp
- Native Methods
- Problems with Native Methods
- Using assert
- Static Import
- Invoking Overloaded Constructors Through this( )
-
CHAPTER 14 Generics
- What Are Generics?
- A Simple Generics Example
- A Generic Class with Two Type Parameters
- The General Form of a Generic Class
- Bounded Types
- Using Wildcard Arguments
- Creating a Generic Method
- Generic Interfaces
- Raw Types and Legacy Code
- Generic Class Hierarchies
- Type Inference with Generics
- Erasure
- Ambiguity Errors
- Some Generic Restrictions
-
PART II The Java Library
- CHAPTER 15 String Handling
-
CHAPTER 16 Exploring java.lang
- Primitive Type Wrappers
- Void
- Process
- Runtime
- ProcessBuilder
- System
- Object
- Using clone( ) and the Cloneable Interface
- Class
- ClassLoader
- Math
- StrictMath
- Compiler
- Thread, ThreadGroup, and Runnable
- ThreadLocal and InheritableThreadLocal
- Package
- RuntimePermission
- Throwable
- SecurityManager
- StackTraceElement
- Enum
- ClassValue
- The CharSequence Interface
- The Comparable Interface
- The Appendable Interface
- The Iterable Interface
- The Readable Interface
- The AutoCloseable Interface
- The Thread.UncaughtExceptionHandler Interface
- The java.lang Subpackages
-
CHAPTER 17 java.util Part 1: The Collections Framework
- Collections Overview
- JDK 5 Changed the Collections Framework
- The Collection Interfaces
- The Collection Classes
- Accessing a Collection via an Iterator
- Storing User-Defined Classes in Collections
- The RandomAccess Interface
- Working with Maps
- Comparators
- The Collection Algorithms
- Arrays
- Why Generic Collections?
- The Legacy Classes and Interfaces
- Parting Thoughts on Collections
-
CHAPTER 18 java.util Part 2: More Utility Classes
- StringTokenizer
- BitSet
- Date
- Calendar
- GregorianCalendar
- TimeZone
- SimpleTimeZone
- Locale
- Random
- Observable
- Timer and TimerTask
- Currency
-
Formatter
- The Formatter Constructors
- The Formatter Methods
- Formatting Basics
- Formatting Strings and Characters
- Formatting Numbers
- Formatting Time and Date
- The %n and %% Specifiers
- Specifying a Minimum Field Width
- Specifying Precision
- Using the Format Flags
- Justifying Output
- The Space, +, 0, and ( Flags
- The Comma Flag
- The # Flag
- The Uppercase Option
- Using an Argument Index
- Closing a Formatter
- The Java printf( ) Connection
- Scanner
- The Scanner Constructors
- Scanning Basics
- Some Scanner Examples
- Setting Delimiters
- Other Scanner Features
- The ResourceBundle, ListResourceBundle, and PropertyResourceBundle Classes
- Miscellaneous Utility Classes and Interfaces
- The java.util Subpackages
- CHAPTER 19 Input/Output: Exploring java.io
- CHAPTER 20 Exploring NIO
- CHAPTER 21 Networking
-
CHAPTER 22 The Applet Class
- Two Types of Applets
- Applet Basics
- Applet Architecture
- An Applet Skeleton
- Simple Applet Display Methods
- Requesting Repainting
- Using the Status Window
- The HTML APPLET Tag
- Passing Parameters to Applets
- getDocumentBase( ) and getCodeBase( )
- AppletContext and showDocument( )
- The AudioClip Interface
- The AppletStub Interface
- Outputting to the Console
-
CHAPTER 23 Event Handling
- Two Event Handling Mechanisms
- The Delegation Event Model
- Event Classes
- The KeyEvent Class
- Sources of Events
-
Event Listener Interfaces
- The ActionListener Interface
- The AdjustmentListener Interface
- The ComponentListener Interface
- The ContainerListener Interface
- The FocusListener Interface
- The ItemListener Interface
- The KeyListener Interface
- The MouseListener Interface
- The MouseMotionListener Interface
- The MouseWheelListener Interface
- The TextListener Interface
- The WindowFocusListener Interface
- The WindowListener Interface
- Using the Delegation Event Model
- Adapter Classes
- Inner Classes
- CHAPTER 24 Introducing the AWT: Working with Windows, Graphics, and Text
-
CHAPTER 25 Using AWT Controls, Layout Managers, and Menus
- Control Fundamentals
- Labels
- Using Buttons
- Applying Check Boxes
- CheckboxGroup
- Choice Controls
- Using Lists
- Managing Scroll Bars
- Using a TextField
- Using a TextArea
- Understanding Layout Managers
- Menu Bars and Menus
- Dialog Boxes
- FileDialog
- Handling Events by Extending AWT Components
- A Word About Overriding paint( )
- CHAPTER 26 Images
-
CHAPTER 27 The Concurrency Utilities
- The Concurrent API Packages
- Using Synchronization Objects
- Phaser
- Using an Executor
- The TimeUnit Enumeration
- The Concurrent Collections
- Locks
- Atomic Operations
-
Parallel Programming via the Fork/Join Framework
- The Main Fork/Join Classes
- The Divide-and-Conquer Strategy
- A Simple First Fork/Join Example
- Understanding the Impact of the Level of Parallelism
- An Example that Uses RecursiveTask<V>
- Executing a Task Asynchronously
- Cancelling a Task
- Determining a Task’s Completion Status
- Restarting a Task
- Things to Explore
- Some Fork/Join Tips
- The Concurrency Utilities Versus Java’s Traditional Approach
- CHAPTER 28 Regular Expressions and Other Packages
-
PART III Software Development Using Java
- CHAPTER 29 Java Beans
- CHAPTER 30 Introducing Swing
- CHAPTER 31 Exploring Swing
- CHAPTER 32 Servlets
-
PART IV Applying Java
-
CHAPTER 33 Financial Applets and Servlets
- Finding the Payments for a Loan
- Finding the Future Value of an Investment
- Finding the Initial Investment Required to Achieve a Future Value
- Finding the Initial Investment Needed for a Desired Annuity
- Finding the Maximum Annuity for a Given Investment
- Finding the Remaining Balance on a Loan
- Creating Financial Servlets
- Some Things to Try
- CHAPTER 34 Creating a Download Manager in Java
- APPENDIX Using Java’s Documentation Comments
-
CHAPTER 33 Financial Applets and Servlets
- Index
Product information
- Title: Java The Complete Reference, 8th Edition, 8th Edition
- Author(s):
- Release date: February 2011
- Publisher(s): Oracle Press
- ISBN: 9780071606318
You might also like
book
Java: The Complete Reference, Eleventh Edition, 11th Edition
The Definitive Java Programming Guide Fully updated for Java SE 11, Java: The Complete Reference, Eleventh …
book
Java: A Beginner's Guide, Eighth Edition, 8th Edition
A practical introduction to Java programming—fully revised for long-term support release Java SE 11 Thoroughly updated …
book
Java Cookbook, 4th Edition
Java continues to grow and evolve, and this cookbook continues to evolve in tandem. With this …
book
Java, A Beginner's Guide, 5th Edition, 5th Edition
Essential Java programming skills made easy From Herb Schildt, the number-one programming author worldwide, comes this …