Subject Area: Programming Languages and Paradigms
in CIDEC Library.
TEACH YOURSELF JAVA IN 21 DAYS
Laura LEMAY
is a technical writer and a nerd. After spending six years writing software
documentation for various computer companies in Silicon Valley, she decided writing books would
be much more fun (but has still not yet made up her mind). In her spare time she collects
computers, e-mail addresses, interesting hair colors, and nonrunning motorcycles. She is also the
perpetrator of Teach Yourself Web Publishing with HTML in 14 Days.
Charles PERKINS
is the founder of Virtual Rendezvous, a company building a Java-based
service that will foster socially focused, computer-mediated, real-time filtered interactions between
people's personas in the virtual environments of the near future. In previous lives, he has
evangelized NeXTSTEP, Smalltalk, and UNIX, and has degrees in both physics and computer
science. Before attempting this book, he was an amateur columnist and author. He's done research
in speech recognition, neural nets, gestural user interfaces, computer graphics, and language
theory, but had the most fun working at Thinking Machines and Xerox PARC's Smalltalk group. In
his spare time, he reads textbooks for fun.
You can reach him via e-mail at virtual@rendezvous.com, or visit his Java page at http://rendezvous.com/java.
Publisher :
Sams.net - Indianapolis, Ind.
READ THE BOOK ONLINE (at publishers site).
Bibliographic :
- Paperback
- ISBN: 1-57521-030-4
- Jan-96, © 1996
- xxiv, 527 p. : ill. ; 24 cm. + 1 computer laser optical disc (4 3/4 in.)
- Dewey ?
- Java (Computer program language)
DESCRIPTION :
Java, the hottest technology to strike the Internet since Mosaic introduced the masses to the World Wide Web in 1992, allows anyone to create living information; true animated, dynamic content that provides the Web audience at large with integrated multimedia, access to applications of any sort (known as applets) and more interesting ways to present a message to the Web community at large!
In Teach Yourself Java in 21 Days best-selling author Laura Lemay (who brought you Teach Yourself Web Publishing with HTML in a Week, Teach Yourself More Web Publishing with HTML in a Week, and Teach Yourself Web Publishing with HTML in 14 Days, Premier Edition) strikes again with her unique approach to complicated subjects, walking the reader through Java with straightforward examples and interesting anecdotes.
Co-author Charles L. Perkins (who has evangelized NeXTSTEP, Smalltalk, and UNIX, and who has worked at Thinking Machines and Xerox PARC) lends his considerable expertise to Teach Yourself Java with seven chapters on advanced Java.
Teach Yourself Java in 21 Days is the first complete hands-on tutorial guide for working with the Java language and class libraries to create applets for Web pages and full-fledged applications. Teach Yourself Java covers the Beta and 1.0 Java API (as supported by Netscape 2.0), and contains complete information about most aspects of Java development including the language itself, the Abstract Window Toolkit class libraries, sounds and animation techniques, and technical details about packages, interfaces and the Java virtual machine.
Teach Yourself Java in 21 Days also comes with a CD-ROM which contains the complete Java development release for Unix and Windows NT/95 platforms, as well as all the examples from the book.
CONTENTS :
Introduction
Week One: The Java Language
- Day One: An Introduction to Java Programming
* What is Java?
* Java's Past, Present, and Future
* Why learn Java?
* Getting Started Programming in Java
* Summary
* Q&A
- Day Two: Object-Oriented Programming and Java
* Thinking in Objects: An Analogy
* Objects and Classes
* Behavior and Attributes
* Inheritance, Interfaces, and Packages
* Creating a Subclass
* Summary
* Q&A
- Day Three: Java Basics
* Statements and Expressions
* Variables and Data Types
* 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
- Day Four: Working with Objects
* Creating New Objects
* Accessing and Setting Class and Instance Variables
* Calling Methods
* References to Objects
* Casting and Converting Objects and Primitive Types
* Odds and Ends
(Comparing Objects,
Copying Objects,
Determining the Class of an Object)
* The Java Class Libraries
* Summary
* Q&A
- Day Five: 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
* Breaking out of Loops
* Summary
* Q&A
- Day Six: Creating Classes and Applications in Java
* Defining Classes
* Creating Instance and Class Variables
* Creating Methods
* Creating Java Applications
* Java Applications and Command Line Arguments
* Summary
* Q&A
- Day Seven: More About Methods
* Creating Methods with the same name, different arguments
* Constructor Methods
* Overriding Methods
* Finalizer Methods
* Summary
* Q&A
Week Two: Developing Java Applets
- Day Eight: Java Applet Basics
* How Applets and Applications are Different
* Creating Applets
* Including an Applet on a Web Page
* More About the <APPLET> Tag
* Passing Parameters to Applets
* Summary
* Q&A
- Day Nine: Graphics, Fonts and Color
* The Graphics Class
* Drawing and Filling
* Text and Fonts
* Color
* Summary
* Q&A
- Day Ten: Simple Animation and Threads
* Creating Animation in Java
* Threads: What they are and Why You Need Them
* Reducing Animation Flicker
* Summary
* Q&A
- Day Eleven: More Animation, Images, and Sound
* Retrieving and Using Images
* Creating Animation using Images
* Retrieving and Using Sounds
* Sun's Animator Applet
* More About Flicker: Double Buffering
* Summary
* Q&A
- Day Twelve: Managing Simple Events and Interactivity
* Mouse Clicks
* Mouse Movements
* Keyboard Events
* The Java Event Handler
* Summary
* Q&A
- Day Thirteen: User Interfaces and the Java Abstract Windowing Toolkit
* An AWT Overview
* Basic User Interface Elements
(Labels ,
Buttons,
Checkboxes,
Radio Buttons,
Choice Menus,
Text Fields)
* Panels and Layout
* Handling UI Actions and Events
* Nesting Panels and Components
* More UI Components
(Text Areas,
Scrolling Lists,
Scroll Bars and Sliders,
Canvases)
* More UI Events
* A Complete Example: RGB to HSB Converter
* Summary
* Q&A
- Day Fourteen: Windows, Menus and Dialog Boxes
* Frames and Applications
* Networking in Java
(Creating Links inside Applets,
Opening Web Connections,
Sockets)
* Other Applet hints
* Summary
* Q&A
Week Three: Advanced Java Programming
- Day Fifteen: Modifiers
* Method and Variable Access Control
* Class Variables and Methods
* The final Modifier
* Abstract Methods and Classes
* Summary
* Q&A
- Day Sixteen: 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
- Day Seventeen: Exceptions
* Programming in the Large
* Programming in the Small
* Limitations Placed on the Programmer
* The Finally Clause
* Summary
* Q&A
- Day Eighteen: Multithreading
* The Problem with Parallelism
* Thinking Multithreaded
* Creating and Using Threads
* Knowing when a Thread has Stopped
* Thread Scheduling
* Summary
* Q&A
- Day Nineteen: Streams
* Input Streams
* Output Streams
* Related Classes
* Summary
* Q&A
- Day Twenty: Native Methods and Libraries
* Disadvantages of Native Methods
* The Illusion of Required Efficiency
* Writing Native Methods
* A Native Library
* Summary
* Q&A
- Day Twenty-One: Under the Hood
* The Big Picture
* The Java Virtual Machine
* Bytecodes in more Details
* The .class File Format
* Method Signatures
* The Garbage Collector
* The Security Story
* Summary
* Q&A
Appendices
Appendix A: Language Summary
Appendix B: Class Hierarchy Diagrams
Appendix C: The Java Class Library
Appendix D: How Java Differs from C and C++
Includes index.
Changed 24/01/1997. Comments: monika@cs.ioc.ee