Book description
Special Edition Using Java 2 Standard Edition specifically covers only the Standard Edition of version 1.3 of the Java Software Development Kit (SDK). It begins with a series of quick refreshers for Object-oriented programming and Java fundamentals, including applet programming and threads, to ensure that readers are up to speed. The book then moves to intermediate Java features including user interface design with Java Foundation Classes (JFC) and Abstract Windows Toolkit (AWT), data structures and Java utilities, containers and layout managers, and creating images. Later chapters cover advanced topics including Internationalization & creating JAR archive files. Useful appendices offer further Java resources & SDK tool information. Throughout the book, the authors focus on Java 2 Standard Edition SDK version 1.3 changes, including the newest “HotSpot” compiler, which offers increased performance, faster start-up and smaller memory usage, among other improvements.
Table of contents
- Copyright
- About the Authors
- Acknowledgments
- Introduction
-
The Java Language
- Object-Oriented Programming
- HelloWorld: Your First Java Program
- Data Types and Other Tokens
- Methods and Exceptions
- Using Expressions
- Control Flow
-
Classes
- What Are Classes?
- Why Use Classes?
- Classes in Java
- Declaring a Class
- Variables—Defining State
- Methods—Defining Behavior
- Creating an Instance of a Class
- Referring to Class Elements
- The Object Class
- Casting and Converting Reference Types
- Inner Classes
- Packages
- Wrapping the Primitive Types in Classes
- Using the Standard Mathematical Functions
- Building a UML Class Diagram
- Troubleshooting
-
Using Strings and Text
- Introducing Strings
- Using the String Class
- Getting Information About a String Object
- Comparing Strings
- String Extraction
- String Manipulation
- Concatenating Strings
- Converting Objects to Strings
- Converting Primitives to Strings
- Using the StringBuffer Class
- Using the StringTokenizer Class
- Strings and the Compiler
- Troubleshooting
- Interfaces
-
Data Structures and Java Utilities
- Collection and Utility Classes
- The Collections Framework
- Collection Interfaces
- In the Beginning
- General-Purpose Implementations
- Sorting a Collection
- Iterating a Collection
- Collection Utilities and Wrappers
- Which Collection Class to Use?
- Array Utilities
- Configuring an Application Using the Properties Class
- Working with Dates
- The BitSet Class
- Generating Random Numbers
- Monitoring State Changes Using Observer/Observable
- Troubleshooting
-
Threads
- What Are Threads?
- Why Use Threads?
- How to Make Your Classes Threadable
- Extending Thread
- Implementing Runnable
- The Life Cycle of a Thread
- Using Thread Local Variables
- Changing Thread Priorities
- Thread Synchronization
- Changing the Running State of a Thread
- Thread Groups
- Obtaining the Number of Running Threads
- Yielding to Other Threads
- Daemon Threads
- Using the Timer and TimerTask Classes
- Making Your Application Thread-Safe
- Troubleshooting
- User Interface
-
I/O
- Streams, Files, and Serialization
- Object Serialization
-
Communications and Networking
- Overview of Network Communications
- TCP/IP Architecture
- Working with Sockets
- Compressing Data When Using Sockets
- Sending Objects Across the Network Using Sockets
- Obtaining Hostname and IP Address Information
- User Datagram Protocol (UDP)
- World Wide Web Overview
- Understanding the Request/Response Scenario
- Using the URL Classes
- An Example: Building a World Wide Web Graph
- HTTP and SSL
- Java Secure Socket Extension Package Overview
- Troubleshooting
- Using Internationalization
- JAR Files
-
Databases
-
JDBC 2.0 Fundamentals
- What Is the JDBC?
- JDBC 2.0 Overview
- JDBC Drivers
- Setting Up a Database
- Installing and Using a JDBC Driver
- JDBC URLs
- Connecting to the Database
- Reading Data Using JDBC
- Writing Data Using JDBC
- Using Prepared Statements
- Using Transactions
- Getting MetaData from the Database
- Using Stored Procedures
- Troubleshooting
- Advanced JDBC 2.0
-
JDBC 2.0 Fundamentals
-
Component Development
- Reflection
-
JavaBeans
- Self-Contained Components
- Important Concepts in Component Models
- The Basics of Designing a JavaBean
- Creating and Using Properties
- Using Events to Communicate with Other Components
- Introspection: Creating and Using BeanInfo Classes
- Customization: Providing Custom PropertyEditors and GUI Interfaces
- Bean Packaging
- Enterprise JavaBeans
- Troubleshooting
- Installing the SDK and Getting Started
- SDK Tools
- SDK 1.3 Performance Improvements
- Java Resources
- Index
Product information
- Title: Special Edition Using Java 2 Standard Edition
- Author(s):
- Release date: December 2000
- Publisher(s): Que
- ISBN: 9780789724687
You might also like
book
Umbraco User's Guide
The first guide to show you how to power your site using Umbraco. More companies are …
book
C# 5.0 Unleashed
Buy the print and get the eBook version for free! See inside the book for access …
audiobook
Transformed
Help transform your business and innovate like the world's top tech companies! Transformed: Moving to the …
video
C# 7 and .NET Core 2.0 Recipes
C# is a multi-paradigm programming language providing support for software engineering principles such as strong type …