java.lang
- Computing Elapsed Time
- Determining When the Application Is About to Exit
- Getting the Size of the Java Memory Heap
- Implementing a Class That Can Be Sorted
- Loading Native Code
- Redirecting Standard Output, and Error
- Terminating the Application
- The Quintessential Java Application
Arrays
Assertions
- Compiling a Program with Assertions
- Enabling Assertions from the Command Line
- Handling an Assertion Error
Classes
- Determining from Where a Class Was Loaded
- Determining If a Class Object Represents a Class or Interface
- Dynamically Reloading a Modified Class
- Getting a Class Object
- Getting the Name of a Class Object
- Getting the Package of a Class
- Getting the Superclass of a Class Object
- Getting the Superclass of an Object
- Listing the Interfaces That a Class Implements
- Listing the Interfaces That an Interface Extends
- Loading a Class That Is Not on the Classpath
Commands
Numbers
Objects
- Cloning an Object
- Comparing Object Values Using Hash Codes
- Wrapping a Primitive Type in a Wrapper Object
Strings
- Comparing Strings
- Constructing a String
- Converting a Primitive Type Value to a String
- Converting a String to Upper or Lower Case
- Converting Between Unicode and UTF-8
- Determining a Character's Unicode Block
- Determining If a String Contains a Substring
- Determining If a String Is a Legal Java Identifier
- Getting a Substring from a String
- Replacing Characters in a String
- Replacing Substrings in a String
- Searching a String for a Character or a Substring
System Properties
- Getting and Setting the Value of a System Property
- Listing All System Properties
- Setting the Value of a System Property from the Command Line
Threads
- Allowing an Application with Live Threads to Exit
- Creating a Bounded Work Queue [5.0]
- Creating a Thread
- Determining If the Current Thread Is Holding a Synchronized Lock
- Determining When a Thread Has Finished
- Getting the Stack Trace of an Exception
- Implementing an Unbounded Work Queue
- Listing All Running Threads
- Pausing a Thread
- Pausing the Current Thread
- Stopping a Thread
- Using a Thread-Local Variable