Guide to Java Programming
This book is designed to be the most comprehensive resource on the Java programming language available anywhere. Chapter by chapter, you will learn everything you need to know to develop and design powerful programs using Java.
Part I, "Next Stop-Java," covers everything you need to know to get started. After introducing the Java programming language and the basic principles of object-oriented programming, Chapter 1 explores the evolution of programming languages and how Java came to be. Chapter 2 details everything the programmer or Web publisher needs to get started with creating Java programs, including installing the Java Developer's Kit. The chapter also provides insight into how C/C++ programmers can best make the transition to Java.
The primers in Part II, "Power Primers," are designed to give you a jump-start on Java development. In addition to being a primer on the World Wide Web, Chapter 3 demonstrates the power of Java through a discussion of the multimedia uses of Java on the Web. Chapter 4 provides a primer on the Java programming language. In this chapter, you create your first Java applet and a Java application. Chapter 5 discusses the essential tools for creating and developing Java programs and how to use them. Featured tools include the developer's tools in the Java Developer's Kit and Java WorkShop, a hot new graphical development environment.
Part III, "Anatomy of the Java Language," examines the inner workings of the Java programming language. Chapter 6 explores the fundamentals of the language including tokens, types, expressions, declarations, and control flow statements. In Chapter 7, everything discussed so far starts to come together as you learn that Java objects are built from classes that contain the fundamentals, a group of classes forms a package, and abstract classes called interfaces patch the structure together. Chapter 8 explores the key concepts of multithreading, error handling, and streaming. These concepts are essential to complete the final pieces of Java programming theories.
The Java Application Programming Interface contains a wealth of ready-to-use code that can save you development time and money. Part IV, "The Java Application Programming Interface," examines everything the API has to offer. In Chapter 9, you will find a list of all available API packages and their relation to one another. Chapter 10 examines the Applet and Language class libraries and their uses in Java programs. Chapter 11 examines the Abstract Windowing Toolkit library and its uses in Java programs. Chapter 12 examines the I/O and Utility libraries and their uses in Java programs. Chapter 13 examines the Net and Debug libraries and their uses in Java programs.
Part V, "Developing Java Applets for the Web," details everything you need to know to develop Java programs for use on the Web. Through example applets, Chapter 14 demonstrates the structure of basic and intermediate-level applets and provides steps for building your own applets. After creating and testing an applet, the next important step is incorporating the applet into an HTML document for use on the World Wide Web. Chapter 15 begins with a brief overview of HTML document structure and then explores HTML elements associated with Java applets. Finally, the chapter shows how the applet can be used in Web publications. An essential concept in object-oriented programming is reusing existing code, which saves development time and money. Chapter 16 discusses when and how to reuse code and provides real-world examples.
Part VI, "Developing Stand-alone Applications," details everything you need to know to develop stand-alone applications. Chapter 17 begins by examining how Java applications differ from applets and then demonstrates the structure of basic and intermediate-level applications. Because useful stand-alone applications are more difficult to create than applets, Chapter 18 provides insight into and examples of the features needed in applications. The chapter goes on to discuss how to increase the functionality of applications. In the real world, software applications have a development life cycle. Chapter 19 explains this life cycle in more detail than previous chapters and shows how to successfully implement application upgrades.
In Part VII, "Advanced Issues," you explore advanced design and development issues. Chapter 20 provides a hands-on example and complete walk-through of an advanced applet. You can use this chapter as a stepping stone for creating your own advanced applets. Chapter 21 provides a hands-on example and complete walk-through of an advanced application. You can use this chapter as a stepping stone for creating your own advanced applications. In Chapter 22, you learn how to use native programs and libraries with Java. These native programs can be in any other programming language including C, C++, and Smalltalk. Debugging and troubleshooting is another important part of programming. Chapter 23 explores advanced debugging issues and provides hands-on examples of using the Java debugger. The final chapter provides a detailed look at the Java runtime system and the Virtual Machine. Understanding the abstract specification of the Java Virtual Machine provides wonderful insight into how Java truly works.
The final section of the book puts key reference resources into your hands. Appendix A, "Java API Table Reference," is an invaluable at-a-glance resource for the Java API. Appendix B, "Java Terminology," is a glossary of terms you will use when working with Java