Trail: Essential Classes: Table of Contents

Exceptions
What Is an Exception?
The Catch or Specify Requirement
Catching and Handling Exceptions
The try Block
The catch Blocks
The finally Block
The try-with-resources Statement
Putting It All Together
Specifying the Exceptions Thrown by a Method
How to Throw Exceptions
Chained Exceptions
Creating Exception Classes
Unchecked Exceptions ― The Controversy
Advantages of Exceptions
Summary
Questions and Exercises
基本的なI/O
I/Oストリーム
バイト・ストリーム
文字ストリーム
バッファ・ストリーム
スキャンとフォーマット
スキャン
フォーマット
コマンドラインを使用したI/O
データ・ストリーム
オブジェクト・ストリーム
File ファイルI/O(NIO.2を含む)
パス(およびその他のファイル・システム要素)について
Pathクラス
パス操作
ファイル操作
ファイルやディレクトリのチェック
ファイルやディレクトリの削除
ファイルやディレクトリのコピー
ファイルやディレクトリの移動
メタデータの管理(ファイル属性とファイル・ストア属性)
ファイルの読取り、書込み、作成
ランダム・アクセス・ファイル
ディレクトリの作成と読取り
シンボリック・リンクとその他のリンク
ファイル・ツリーの横断
ファイルの検索
ディレクトリの変更監視
その他の便利なメソッド
旧来のファイルI/Oコード
まとめ
設問と演習: 基本的なI/O
Concurrency
Processes and Threads
Thread Objects
Defining and Starting a Thread
Pausing Execution with Sleep
Interrupts
Joins
The SimpleThreads Example
Synchronization
Thread Interference
Memory Consistency Errors
Synchronized Methods
Intrinsic Locks and Synchronization
Atomic Access
Liveness
Deadlock
Starvation and Livelock
Guarded Blocks
Immutable Objects
A Synchronized Class Example
A Strategy for Defining Immutable Objects
High Level Concurrency Objects
Lock Objects
Executors
Executor Interfaces
Thread Pools
Fork/Join
Concurrent Collections
Atomic Variables
Concurrent Random Numbers
For Further Reading
Questions and Exercises: Concurrency
The Platform Environment
Configuration Utilities
Properties
Command-Line Arguments
Environment Variables
Other Configuration Utilities
System Utilities
Command-Line I/O Objects
System Properties
The Security Manager
Miscellaneous Methods in System
PATH and CLASSPATH
Questions and Exercises: The Platform Environment
Regular Expressions
Introduction
Test Harness
String Literals
Character Classes
Predefined Character Classes
Quantifiers
Capturing Groups
Boundary Matchers
Methods of the Pattern Class
Methods of the Matcher Class
Methods of the PatternSyntaxException Class
Unicode Support
Additional Resources
Questions and Exercises: Regular Expressions

Problems with the examples? Try Compiling and Running the Examples: FAQs.
Complaints? Compliments? Suggestions? Give us your feedback.

Previous page:
Next page: