1. Arrays and Collections
|
|
- Arrays
- Collections
- Why Collections?
- Collections Interfaces
- Collections Interfaces
- Collections Implementations
- Collections Utilities
- Collections Notes
- Generics and Collections
|
|
2. JavaBeans
|
|
- JavaBeans
- Overview
- Structure
- Life Cycle
- Properties
- Example
- Making a Bean
|
|
3. JDBC
|
|
- Java Database Connectivity
- Overview
- Types of Drivers
- Making a Connection
- Statements
- Execute, Update and ResultSets
- Prepared Statements
- Stored Procedures
- Transactions
- Connection Pooling
|
|
4. Internationalization
|
|
- Objectives
- Internationalization
- Locale
- Dates
- User Interface design
- Resource Bundles
- Other Local Customs
- How Java Represents Characters
- Text Files
- Text files
- Summary
|
|
5. The Reflection API
|
|
- Overview
- Dynamic Facilities In Java
- What this dynamic aspect implies
- Considerations
- The Class class
- Examining Classes
- The Example From Last Time
- An Example
- Reflection Allows
- Reflection Also Allows
- When not to use Reflection
- Examining Classes
- Manipulating Objects
- Creating Objects
- Getting Field Values
- Setting Field Values
- An example
- Example Continued
- Arrays
- Summary
|
|
6. Architecture
|
|
- Architecture
- Tiered Architectures
- Presentation Layer
- Middle Tier
- Model View Controller
- Extensible Markup Language
- XML
|
|
7. Threads
|
|
- Threads
- Overview of Threads
- Threads in Java Programming
- Write a Runnable Class
- Create Threads
- Another Way of Creating Threads
- Two ways of creating threads
- States in a Thread s Lifetime
- JVM Scheduler
- Control and Schedule Thread
- Executor Interface
- Callable<V> Interface
- ExecutorService Interface
- Future<T> Object
- Coordinating the Concurrency of Multiple threads
- Synchronization
- How Does the Object Lock Flag Work
- Using the synchronized keyword
- The implication of synchronization
- Example of Synchronization - Producer/Consumer
- Example of Synchronization MyStack
- Example of Synchronization Producer
- Example of Synchronization Producer
- Example of Synchronization Consumer
- Example of Synchronization Consumer
- Example of Synchronization SyncTest
- But
- Coordinating Thread Cooperation
- wait() and notify()
- Example of Coordination Producer/Consumer
- Example of Coordination MyStack
- Example of Coordination MyStack
- Results
- Deadlock
|
|
8. Networking
|
|
- Java Networking
- Overview
- URL Connections
- Browser Example
- InetAddress
- Socket Classes
- Simple Clients and Servers
- Multithreaded Servers
- UDP Sockets
|
|
9. Parsing XML with DOM
|
|
- Topics
- DOM
- Limitations of SAX
- XML as an Object Model
- Nodes
- The Basic Node Types
- Less Common Node Types
- Node Interface
- Node Interface
- Document Interface
- NodeList Interface
- Element Interface
- Attr Interface
- Text Interface
- DOM Parsing
- Parse XML with DOM Steps
- Prepare DOM Parser Object
- Parse XML Document
- Parse Exceptions
- Example SimpleDOMParser
- Example SimpleDOMParser
- Example SimpleDOMParser
|
|
10. Parsing XML with SAX
|
|
- Obtaining a Parser
- SAX
- How it Works
- Core SAX2 Handler Classes
- SAX2 DefaultHandler
- SAX Events
- Ignorable Whitespace
- XML Reader Interface
- XMLReader Features
- XMLReader Factory
- Prepare SAX Parser Object
- Parse XML with SAX Steps
- Define an Event Handler
- Prepare SAX Parser Object
- Define an Event Handler startElement()
- Define an Event Handler Element Attributes
- Define an Event Handler Get Number of Attributes
- Define an Event Handler Get Name of Attributes
- Define an Event Handler Get Attribute Values
- Define an Event Handler Get Attribute Types
- Define an Event Handler An Example
- Define an Event Handler characters()
- Using characters()
- Define an Event Handler Error Handling
- Define an Event Handler ErrorHandler interface
- Parse XML Document
- Simple SAX Parser
- Run the SAX Application
- EntityResolver
- Locator
- Document Locator
|
|
11. Distributed Objects
|
|
- Overview
- Serialization
- Externalizable
- Remote Method Invocation
- Steps to implement RMI
- RMI Remote Object Registry
- RMI Dynamic class loading
- RMI Dynamic class loading
- RMI and Applets
- Summary
|
|
12. JDK Versions
|
|
- JDK 1.4 New I/O API
- Buffer
- Channel
- Simple Write Example
- Simple Read Example
- File Locking
- Simple Locking Example
- Memory Mapping File
- Example Memory Mapping
- Regular Expression Search
- JDBC 3.0 Enhancements
- JDK 1.4 New Features
- JDK 1.4 New Features
- Control Flow of Logging
- Loggers
- Logging API - Handlers
- Logging API Formatters & Log Manager
- Example Logging Configuration File
- Logging Example
- XML Processing Using JAXP
- Example SAX Handler
- Example: Begin Parsing
- Example: Build DOM Document
- Example: Save DOM Document in a File
- XML Serialization Format
- Chained Exception
- JDK 1.4 - Assertions
- When to use Assertions
- Enabling Assertions
- Java 5-Type Safe Enums
- Java 5 Generic Types
- Java 5 Autoboxing/Unboxing
- Java 5 For-each syntax
- Java 5 Variable-length argument lists
- Java 5 Static import
- Java 5 Annotations
- Java 5 Library Additions
|
|
13. Security
|
|
- Java Security
- Attacks and Dangers
- Overview of JDK Security Features
- Overview of JDK Security Features cont
- Basic Concepts of Computer Security
- Encryption
- Cryptography Algorithm
- Message Digest
- Symmetric Ciphers
- Asymmetric Ciphers
- Digital Signature
- Authentication
- Certificate Manipulation
- Java Cryptography Architecture (JCA)
- Java Cryptography Extension
- Using the MessageDigest Class
- Example of Using the MessageDigest Class
- Example of Using MessageDigest Class cont
- Example of Using MessageDigest Class cont
- Using the Signature Class
- Java Security Architecture
- JDK 1.0 Security Model Sandbox
- JDK 1.1 Security Model Trusted Signed Code
- JDK 1.2 Security Model Security Policy
- JDK 1.4 Security Enhancement
- Protection Domains and Security Policies
- ProtectionDomain Class
- Permission Classes
- Using Permission Classes
- Policy Class
- Policy Configuration File
- AccessController Class
- SecurityManager Class
- Using the SecurityManager Class
- Dynamic Class Loader
- Loader Classes
- Example of Security Check in a Class Loader
- Java Security Tools
- Using Java Security Tools Code Signing
- Using Java Security Tools Code Signing
|
|
14. JNI
|
|
- JNI - Java Native Interface
- Overview
- JNI Architecture
- Calling C Functions
- The Header File
- Passing Simple Parameters
- Mapping Java Types
- Calling Java Methods
- The Invocation API
- Exception Handling
- Native Exception to Java
- Java Exception In Native Code
- Code Sample
|