Java is the hottest new technology on the World Wide Web - it allows programmers to embed applications within Web pages. This book is a detailed guide to developing applications with the Java language. The CD includes the source code for all the examples used in the book, additional examples of Java applets, and Java browsers for all supported platforms. How to Use this Book 3 Dedication & Credits 4 Table of Contents 5 Acknowledgments 16 About the Authors 17 Introduction 18 Week 1 At a Glance 22 Lesson 1: An Introduction to Java Programming 24 Lesson 2: Object-Oriented Programming and Java 39 Lesson 3: Java Basics 61 Lesson 4: Working with Objects 81 Lesson 5: Arrays, Conditionals, and Loops 99 Lesson 6: Creating Classes and Applications in Java 114 Lesson 7: More About Methods 129 Week 2 At a Glance 144 Lesson 8: Java Applet Basics 146 Lesson 9: Graphics, Fonts, and Color 166 Lesson 10: Simple Animation and Threads 190 Lesson 11: More Animation, Images, and Sound 211 Lesson 12: Managing Simple Events and Interactivity 232 Lesson 13: The Java Abstract Windowing Toolkit 252 Lesson 14: Windows, Networking, and Other Tidbits 294 Week 3 At a Glance 317 Lesson 15: Modifiers 319 Lesson 16: Packages and Interfaces 336 Lesson 17: Exceptions 354 Lesson 18: Multithreading 366 Lesson 19: Streams 387 Lesson 20: Native Methods and Libraries 414 Lesson 21: Under the Hood 431 Appendix A: Language Summary 482 Appendix B: Class Hierarchy Diagrams 491 Appendix C: The Java Class Library 504 Appendix D: How Java Differs from C and C++ 513 Week 1 At A Glance. An Introduction To Java Programming -- Object-oriented Programming And Java -- Java Basics -- Working With Objects -- Arrays, Conditionals, And Loops -- Creating Classes And Applications In Java -- More About Methods -- Week 2 At A Glance. Java Applet Basics -- Graphics, Fonts, And Color -- Simple Animation And Threads -- More Animation, Images, And Sound -- Managing Simple Events And Interactivity -- User Interfaces With The Java Abstract Windowing Toolkit -- Windows, Networking, And Other Tidbits -- Week 3 At A Glance. Modifiers -- Packages And Interfaces -- Exceptions -- Multithreading -- Streams -- Native Methods And Libraries -- Under The Hood -- Appendix A. Language Summary -- Appendix B. Class Hierarchy Diagrams. Cont.): Appendix C. The Java Class Library -- Appendix D. How Java Differs From C And C++.e. Laura Lemay, Charles L. Perkins. Cd-rom In Pocket. Includes Index. This national bestseller teaches everything readers need to know to begin building professional Java applications quickly. -- Provides detailed coverage of the hottest new technology on the World Wide Web -- Shows readers how to develop applications using the Java language -- Includes coverage of browsing Java applications with Netscape and other popular Web browsers -- CD-ROM including the Java Developer's Kit A guide to developing applications with the JAVA language from Sun Microsystems.