Java Tutorials - Herong's Tutorial Notes
Version 4.10
Dr. Herong Yang
Copyright © 2001 - 2006 by Dr. Herong Yang. All rights reserved.
Table of Contents
About This Book
Installing J2SDK 1.4.1 on Windows 2000
- Download J2SDK 1.4.1_01
- First Java Program
Installing JDK 1.5.0 on Windows XP
- Download JDK 1.5.0
- First Java Program - Hello.java
Execution Of Java Programs
- Execution Process
- Execution Entry Point
- Execution Console
Bits, Bytes, Bitwise and Shift Operations
- What Are Bits and Bytes?
- Java "byte" Data Type and Assignment Operations
- Operations on "byte" Data Type Values
- Bitwise Operations: And, Or, Exclusive Or, and Complement
- Shift Operations: Left Shift, Right Shift, and Unsigned Right Shift
Storing and Managing Bit Strings in Byte Arrays
- Storing and Managing Bit Strings in Byte Arrays
- Rotating Bit Strings in Byte Arrays
- bitStringTest.java - Testing Program
Execution Environment
- System Properties
- Non-system Properties
- The Runtime Instance
- Free Memory
- Calculating Memory Usage of an Array
- Executing Operating System Commands
Threads
- What Is a Thread
- Creating Java Threads
- Using Runnable Interface
- CPU Time Sharing
- Sharing Data
- Terminating Threads
Thread Groups
- ThreadGroup Class
- The ThreadGroup Tree
- Grouping Threads
- Memory Leak With Unstarted Threads
Synchronization
- Why Synchronization
- What Is Synchronization
- Synchronization Support in Java
- Synchronization Sample Program
Deadlock
- What Is Deadlock
- 5 Dining Philosophers
- Deadlock Sample Program - Transferring Funds
References
Key Words:
array, book, bit, bitwise, byte, console, deadlock, example, J2SDK, Java, JDK, JVM, main, memory, online, operation,
shift, synchronization, string, syntax, thread, tutorial
|