Contents
Chapter 1: Java language basics
Java syntax
Identifiers
Literals
Keywords
Statements
Code blocks
Comments
Expressions
Operators
Java's data types
Variables
Built-in data types
Composite data types
Type casting
Scope rules
Flow control structures
Loops
Loop control statements
Conditional statements
Summary
Chapter 2: Object-oriented programming in Java
Introduction to OOP
Classes
Declaring and instantiating classes
Data members
Class methods
Constructors and finalizers
Case study: A simple OOP example
Class inheritance
Access modifiers
Accessor methods
Abstract classes
Polymorphism
Method overloading
Using interfaces
Java packages
The import statement
Declaring packages
Project options related to packages
Summary
Chapter 3: The Java class libraries
Introduction
The Language package
The Object class
Type wrapper classes
The Math class
The String class
The StringBuffer class
The System class
The Utilities package
The Enumeration interface
The Vector class
The I/O package
Input stream classes
Output Stream classes
File classes
The StreamTokenizer class
Summary
Chapter 4: Threading techniques
Overview
Why are threads useful?
Why haven't I heard of threads before?
Creating a thread
Subclassing the Thread class
Implementing the Runnable interface
The Thread API
Constructors
The start() method
The sleep() method
The yield() method
The join() method
A thread's lifecycle
Making your code thread-safe
The synchronized keyword
Monitors
Summary
Chapter 5: Serialization
Overview
Why serialize?
Serialization in JDK 1.1
The Serializable interface
Using output streams
ObjectOutputStream methods
Using input streams
ObjectInputStream methods
Writing and reading object streams
Summary
Chapter 6: Java Virtual Machine security
Overview
Why is the Java VM necessary?
What are the main roles of the JVM?
Java VM security
The security model
What about Just-In-Time compilers?
Summary
Chapter 7: Working with the native code interface
Overview
Using the JNI
Using the native keyword
Using the javah tool
Summary
© 1997, 2000 by INPRISE Corporation, Inc.
All Rights Reserved