-
Java Secrets
- Preface
-
About the Author
-
Part I—How Java Works
- Chapter 1—Introducing Java SECRETS
- Chapter 2—Primitive Data Types
-
Chapter 2—Primitive Data Types
- Bytes in Memory
- Variables, Values, and Identifiers
-
Place-Value Number Systems
- Binary notation
- Hexadecimal notation
- Octal notation
-
Integers
- ints
- Long, short, and byte
-
Floating-Point Numbers
- Representing floating-point numbers in binary code
- Special values
- Denormalized floating-point numbers
-
CHAR
- ASCII
- ISO Latin-1
- Unicode
- UTF8
- Boolean
-
Cross-Platform Issues
- Byte order
- Unsigned integers
- Integer widths
-
Conversions and Casting
- Using a cast
- The mechanics of conversion
-
Bit-Level Operators
- Some terminology
- Bitwise operators
- Bit shift operators
- Summary
- Chapter 3—Classes, Strings, and Arrays
- Chapter 4—The Java Virtual Machine
- Chapter 5—Java Byte Code
-
Part II—The Sun Classes
- Chapter 6—Threads and Garbage Collection
- Chapter 7—Controlling Applets
- Chapter 8—Introducing the Sun Classes
- Chapter 9—Using the sun.applet Classes to View Applets
- Chapter 10—Controlling Audio Playback with sun.audio
- Chapter 11—Controlling the AWT with the sun.awt Package
- Chapter 12—Encoding and Decoding Data with the sun.misc Package
- Chapter 13—Network Servers and Clients in the sun.net Package
- Chapter 14—Sending Mail with the sun.net.smtp Package
- Chapter 15—Reading News via NNTP with the sun.net.nntp Package
- Chapter 16—Transferring Files with the sun.net.ftp Package
- Chapter 17—Communicating with Web Servers
-
Part III—Platform-Dependent Java
- Chapter 18—Character Conversion with sun.io
-
Chapter 19—Mixed Language Programming with Native Methods
- Disadvantages
- Code in Java First
- The Java Native Method Interface
-
Using Objects in Native Methods
- Invoking instance methods
- Calling Java methods from C
- Passing arguments to Java methods
- Using strings in native methods
- Using arrays in native methods
- Accessing fields from native methods
- Static methods and fields in native methods
- Errors and exceptions in native methods
- Garbage collection and native methods
- Threading and native methods
- Determining at Runtime Whether Native Code Is Available
- Summary
- Chapter 20—Creating Stand-Alone Programs