Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Cover Page
About This eBook
Title Page
Copyright Page
Figure Credits
Contents at a Glance
Table of Contents
Dedication
About the Author
Acknowledgments
We Want to Hear from You!
Reader Services
Introduction
How This Book Is Organized
Who Should Read This Book
Conventions Used in This Book
Part I: The Java Language
Lesson 1. Getting Started with Java
The Java Language
Object-Oriented Programming
Objects and Classes
Attributes and Behavior
Organizing Classes and Class Behavior
Summary
Q&A
Quiz
Certification Practice
Exercises
Lesson 2. The ABCs of Programming
Statements and Expressions
Variables and Data Types
Comments
Literals
Expressions and Operators
String Arithmetic
Summary
Q&A
Quiz
Certification Practice
Exercises
Lesson 3. Working with Objects
Creating New Objects
Using Class and Instance Variables
Calling Methods
References to Objects
Casting Objects and Primitive Types
Comparing Object Values and Classes
Summary
Q&A
Quiz
Certification Practice
Exercises
Lesson 4. Lists, Logic, and Loops
Arrays
Block Statements
if Conditionals
Switch Conditionals
The Ternary Operator
for Loops
while and do Loops
Breaking Out of Loops
Summary
Q&A
Quiz
Certification Practice
Exercises
Lesson 5. Creating Classes and Methods
Defining Classes
Creating Instance and Class Variables
Creating Methods
Creating Java Applications
Java Applications and Arguments
Creating Methods with the Same Name
Constructors
Overriding Methods
Summary
Q&A
Quiz
Certification Practice
Exercises
Lesson 6. Packages, Interfaces, and Other Class Features
Modifiers
Static Variables and Methods
Final Classes, Methods, and Variables
Abstract Classes and Methods
Packages
Creating Your Own Packages
Interfaces
Creating and Extending Interfaces
Summary
Q&A
Quiz
Certification Practice
Exercises
Lesson 7. Exceptions and Threads
Exceptions
Managing Exceptions
Declaring Methods That Might Throw Exceptions
Creating and Throwing Exceptions
When Not to Use Exceptions
Threads
Summary
Q&A
Quiz
Certification Practice
Exercises
Part II: The Java Class Library
Lesson 8. Data Structures
Moving Beyond Arrays
Java Structures
Generics
Enumerations
Summary
Q&A
Quiz
Certification Practice
Exercises
Lesson 9. Creating a Graphical User Interface
Creating an Application
Working with Components
Lists
The Java Class Library
Summary
Q&A
Quiz
Certification Practice
Exercises
Lesson 10. Building an Interface
Swing Features
Summary
Q&A
Quiz
Certification Practice
Exercises
Lesson 11. Arranging Components on a User Interface
Basic Interface Layout
Mixing Layout Managers
Card Layout
Summary
Q&A
Quiz
Certification Practice
Exercises
Lesson 12. Responding to User Input
Event Listeners
Working with Methods
Summary
Q&A
Quiz
Certification Practice
Exercises
Lesson 13. Creating Java2D Graphics
The Graphics2D Class
Drawing Text
Color
Drawing Lines and Polygons
Summary
Q&A
Quiz
Certification Practice
Exercises
Lesson 14. Developing Swing Applications
Improving Performance with SwingWorker
Grid Bag Layout
Summary
Q&A
Quiz
Certification Practice
Exercises
Part III: Java Programming
Lesson 15. Using Inner Classes and Lambda Expressions
Inner Classes
Lambda Expressions
Variable Type Inference
Summary
Q&A
Quiz
Certification Practice
Exercises
Lesson 16. Working with Input and Output
Introduction to Streams
Byte Streams
Filtering a Stream
Character Streams
Files and Paths
Summary
Q&A
Quiz
Certification Practice
Exercises
Lesson 17. Communicating Over HTTP
Networking in Java
The java.nio Package
Summary
Q&A
Quiz
Certification Practice
Exercises
Lesson 18. Accessing Databases with JDBC and Derby
Java Database Connectivity
Summary
Q&A
Quiz
Certification Practice
Exercises
Lesson 19. Reading and Writing RSS Feeds
Using XML
Designing an XML Dialect
Processing XML with Java
Processing XML with XOM
Summary
Q&A
Quiz
Certification Practice
Exercises
Lesson 20. Making Web Service Requests
Introduction to XML-RPC
Communicating with XML-RPC
Choosing an XML-RPC Implementation
Using an XML-RPC Web Service
Creating an XML-RPC Web Service
Summary
Q&A
Quiz
Certification Practice
Exercises
Lesson 21. Writing a Game with Java
Playing a Game
Summary
Q&A
Quiz
Certification Practice
Exercises
Part IV: Appendixes
Appendix A. Using the NetBeans Integrated Development Environment
Installing NetBeans
Creating a New Project
Creating a New Java Class
Running the Application
Fixing Errors
Expanding and Shrinking a Pane
Exploring NetBeans
Appendix B. Fixing Package Not Visible Errors in NetBeans
Adding Module Info
Appendix C. This Book’s Website
Appendix D. Using the Java Development Kit
Choosing a Java Development Tool
Configuring the Java Development Kit
Using a Text Editor
Creating a Sample Program
Appendix E. Programming with the Java Development Kit
Overview of the JDK
java, the Java Virtual Machine
The javac Compiler
The javadoc Documentation Tool
The jar Java File Archival Tool
The jdb Debugger
Using System Properties
Writing Java Statements in a Shell
Index
Code Snippets
← Prev
Back
Next →
← Prev
Back
Next →