Teach Yourself Java in Cafe in 21 Days (Sams Teach Yourself)
Daniel I. Joshi, Sams Publishing ISBN:1575211572, Edition: 1st, 1996-07-01 Price: $39.99
Teach Yourself
CAFE in 21Days
by Daniel I. Joshi Laura Lemay Charles L. Perkins
C O N T E N T S
Introduction
WEEK 1 At a Glance
Day1 An Introduction to Java Programming
- What is Java?
- Embedding a Java Applet on an HTML Page
- Understanding Applets and Applications
- Java's Past, Present, and Future
- Why Learn Java?
- Java is Platform-Independent
- Java is Object-Oriented
- Java is Robust
- Java is Easier to Learn using IDEs
- Java IDEs
- Symantec Café
- Mixing Café with Java
- Summary
- Q&A
Day2 Introducing Café
- Installing Café
- System Requirements
- Options on the Café Installation Options
- Uninstalling Symantec Café
- The Café Desktop
- Understanding the Café Desktop
- Configuring Your Desktop
- Getting Started with Java
- The Development Process
- Using the ProjectExpress To Build a Project
- Appletviewer
- Summary
- Q & A
Day3 Object-Oriented Programming and Java
- Thinking in Objects-An Analogy
- Behavior and Attributes
- Attributes
- Behavior
- Creating a Class
- Inheritance, Interfaces, and Packages
- Inheritance
- Creating a Class Hierarchy
- How Inheritance Works
- Single and Multiple Inheritance
- Introduction to the Class Editor
- Introduction to the Hierarchy Editor
- Creating a Subclass
- Summary
- Q&A
Day4 Java Basics
- Statements and Expressions
- Variables and Data Types
- Declaring Variables
- Notes on Variable Names
- Variable Types
- Assigning Values to Variables
- Comments
- Literals
- Number Literals
- Boolean Literals
- Character Literals
- String Literals
- Expressions and Operators
- Arithmetic
- More About Assignment
- Incrementing and Decrementing
- Comparisons
- Logical Operators
- Bitwise Operators
- Operator Precedence
- String Arithmetic
- Summary
- Q&A
Day5 Working with Objects
- Creating New Objects
- Using new
- What new Does
- A Note on Memory Management
- Accessing and Setting Class and Instance Variables
- Getting Values
- Changing Values
- Class Variables
- Calling Methods
- References to Objects
- Casting and Converting Objects and Primitive Types
- Casting Primitive Types
- Casting Objects
- Converting Primitive Types to Objects and Vice Versa
- Odds and Ends
- Comparing Objects
- Determining the Class of an Object
- The Java Class Library
- Summary
- Q&A
Day6 Arrays, Conditionals, and Loops
- Arrays
- Declaring Array Variables
- Creating Array Objects
- Accessing Array Elements
- Changing Array Elements
- Multidimensional Arrays
- Block Statements
- if Conditionals
- switch Conditionals
- for Loops
- while and do Loops
- while Loops
- do
while Loops
- Breaking Out of Loops
- Summary
- Q&A
Day7 Creating Classes and Applications in Java
- Defining Classes
- Creating Instance and Class Variables
- Defining Instance Variables
- Constants
- Class Variables
- Creating Methods
- Defining Methods
- The this Keyword
- Variable Scope and Method Definitions
- Passing Arguments to Methods
- Class Methods
- Creating Java Applications
- Java Applications and Command-Line Arguments
- Passing Arguments to Java Programs
- Handling Arguments in Your Java Program
- Understanding Café Parsing Technology
- More on the Class Editor
- More on the Hierarchy Editor
- Summary
- Q&A
WEEK 2 At a Glance
Day8 More about Methods
- Creating Methods with the Same Name, Different Arguments
- Constructor Methods
- Basic Constructors
- Calling Another Constructor
- Overloading Constructors
- Overriding Methods
- Creating Methods that Override Existing Methods
- Calling the Original Method
- Overriding Constructors
- Finalizer Methods
- Summary
- Q&A
Day9 Java Applet Basics
- How Applets and Applications Are Different
- Creating Applets
- Introduction to the appexpress
- Creating an Applet with the appexpress
- A Simple Applet
- Including an Applet on a Web Page
- The <APPLET> Tag
- Testing the Result
- Making Java Applets Available to the Web
- More About the <APPLET> Tag
- ALIGN
- HSPACE and VSPACE
- CODE and CODEBASE
- Passing Parameters to Applets
- Summary
- Q&A
Day10 Graphics, Fonts, and Color
- The Graphics Class
- The Graphics Coordinate System
- Drawing and Filling
- Lines
- Rectangles
- Polygons
- Ovals
- Arc
- A Simple Graphics Example
- Copying and Clearing
- Text and Fonts
- Creating Font Objects
- Drawing Characters and Strings
- Finding Out Information about a Font
- Color
- Using Color Objects
- Testing and Setting the Current Colors
- A Single Color Example
- Summary
- Q&A
Day11 Animation and Multithreading
- Creating Animation in Java
- Painting and Repainting
- Starting and Stopping an Applet's Execution
- Putting It Together
- Retrieving and Using Images
- Getting Images
- Drawing Images
- Modifying Images
- Creating Animation Using Images
- Sun's Animator Applet
- Threads: What They Are and Why You Need Them
- Thinking Multithreaded
- Creating and Using Threads
- Thread Scheduling
- Preemptive versus Nonpreemptive
- The Problem with the Digital Clock Applet
- Writing Applets with Threads
- Fixing the Digital Clock
- An Example: Neko
- Reducing Animation Flicker
- Flicker and How to Avoid It
- How to Override Update
- Solution One: Don't Clear the Screen
- Solution Two: Redraw Only What You Have To
- More About Flicker Double-Buffering
- Creating Applets with Double-Buffering
- An Example: Checkers Revisited
- The Thread Viewer
- The Problem with Parallelism
- Summary
- Q&A
Day12 Designing Front Ends with the Café Studio
- The Café Studio
- An awt Overview
- The Basic User Interface Components
- Labels
- Buttons
- CheckBoxes
- Radio Buttons
- Choice Menus
- Text Fields
- Panels and Layout
- Nesting Panels and Components
- More UI Components
- Text Areas
- Scrolling Lists
- Scroll Bars and Sliders
- Canvases
- Summary
- Q&A
Day13 More on Front Ends with the Café Studio
- Windows, Menus, and Dialog Boxes
- Frames
- Menus
- File Dialogs
- Managing Simple Events
- Mouse Clicks
- mouseDown and mouseUp
- The Spots Applet Example
- Mouse Movements
- mouseDrag and mouseMove
- mouseEnter and mouseExit
- The Drawing Lines Example
- Keyboard Events
- The keyDown and keyUp Methods
- Default Keys
- Entering, Displaying, and Moving Characters: A Sample Applet
- Testing for Modifier Keys
- The awt Event Handler
- Summary
- Q&A
Day14 Utilizing the Visual Debugger in Café
- Debugging a Project
- Working with Errors in Java and Symantec Café
- Understanding Error Messages in Java and Symantec Café
- Using Symantec Café's Debugging Tools
- Breakpoints
- The Data/Object Window
- The Call Window
- The Thread View Window
- What To Do in Symantec Café When You Need Help
- The Café Tutorial
- The Symantec Café Help Files
- Summary
- Q&A
WEEK 3 At a Glance
Day15 Java Database Connectivity
- Why Have the JDBC?
- What Is the JDBC?
- Understanding the JDBC Interfaces
- Implications of Using the JDBC with Java Applets
- Implications of Using the JDBC with Java Applications
- Introduction to the JDBC Classes
- The DriverManager
- The Connection Interface
- The Statement Interface
- The ResultSet Abstract Class
- An Example of Using the JDBC API
- Writing Your Own Driver Using the JDBC Driver API
- Summary
- Q&A
Day16 Networking and Other Tidbits
- Networking in Java
- Creating Links Inside Applets
- Opening Web Connections
- openStream()
- The URLConnection Class
- Sockets
- Other Applet Hints
- Using the showStatus() Method
- Providing Applet Information
- Communicating Among Applets
- Summary
- Q&A
Day17 Modifiers
- Method and Variable Access Control
- The Four P's of Protection
- The Conventions for Instance Variable Access
- Class Variables and Methods
- The final Modifier
- final Classes
- final Variables
- final Methods
- abstract Methods and Classes
- Summary
- Q&A
Day18 Packages and Interfaces
- Packages
- Programming in the Large
- Programming in the Small
- Hiding Classes
- Interfaces
- Programming in the Large
- Programming in the Small
- Summary
- Q&A
Day19 Exceptions
- Programming in the Large
- Programming in the Small
- The Limitations Placed on the Programmer
- The finally Clause
- Summary
- Q&A
Day20 Streams
- Input Streams
- The abstract Class InputStream
- ByteArrayInputStream
- FileInputStream
- FilterInputStream
- PipedInputStream
- SequenceInputStream
- StringBufferInputStream
- Output Streams
- The abstract Class OutputStream
- ByteArrayOutputStrem
- FileOutputStream
- FilterOutputStream
- PipedOutputStream
- Related Classes
- Summary
- Q&A
Day21 Under the Hood
- The Big Picture
- Why It's a Powerful Vision
- The Java Virtual Machine
- An Overview
- The Fundamental Parts
- The Constant Pool
- Limitations
- Bytecodes in More Detail
- The Bytecode Interpreter
- The Just-in-Time Compiler
- The java2c Translator
- The Bytecodes Themselves
- The _quick Bytecodes
- The .class File Format
- Method Signatures
- The Garbage Collector
- The Problem
- The Solution
- Java's Parallel Garbage Collector
- The Security Story
- Why You Should Worry
- Why You Might Not Have To Worry About Java's Security Model
- Summary
- Q&A
appendixA Language Summary
- Reserved Words
- Comments
- Literals
- Variable Declaration
- Variable Assignment
- Operators
- Objects
- Arrays
- Loops and Conditionals
- Class Definitions
- Method and Constructor Definitions
- Packages, Interfaces, and Importing
- Exceptions and Guarding
appendixB Class Hierarchy diagrams
appendixC The Java Class Library
- java.lang
- java.util
- java.io
- java.net
- java.awt
- java.awt.image
- java.awt.peer
- java.applet
appendixD How Java differs from C and C++
- Pointers
- Arrays
- Strings
- Memory Management
- Data Types
- Operators
- Control Flow
- Arguments
- Other Differences
Credits
|
|