Throughout this book, we use extensive sample code to demonstrate each of the language features and library features discussed. We intentionally use simple sample programs to highlight the point, however, most of them are neither fakes nor cut corners. They will be a good start for readers to write their own code.! [](https://pic4.zhimg.com/80/v2-8ab21e7f52db0f388a1402f30d9efbf2_720w.jpeg)! [](https://pic2.zhimg.com/80/v2-d81260db1242106e1bf7dc9f84385a99_720w.jpeg)Chapter 1 Outlines the performance of Java that differs from other programming languages. Explain how the language is designed and what it does to achieve the desired effect. Then, a brief description of the birth and development of Java history.Chapter 2 details how to download and install the JDK and the program examples in this book. Then, you guide the reader through a simple JDK, a Java-enabled text editor, and a Java IDE by compiling and running three typical Java programs (a console application, a graphics application, and an applet).Chapter 3 begins a discussion of the Java language. This chapter covers the basics of variables, loops, and simple functions. For C or C++ programmers, this chapter will feel comfortable because the syntax of these language features is essentially the same as that of C. Careful reading of this chapter is essential for programmers who do not have a background in C programming but have used other programming languages, such as VisualBasic. Object-oriented Programming (0OP) is the mainstream of today’s Programming, and Java is a completely object-oriented language.! [](https://pic4.zhimg.com/80/v2-c8955fa11126ea2c6bdb5e9938467cb9_720w.jpeg)Chapter 4 introduces encapsulation, the most important of the two basic elements of object orientation, and the mechanism by which the Java language implements encapsulation, namely classes and methods. In addition to the Java language rules, advice is given on how to design OOP correctly. Finally, you’ll see the wonderful Javadoc tool that turns code comments into hyperlinked web pages. Programmers familiar with C++ can quickly navigate this chapter, but those without a background in object-oriented programming should spend some time understanding the concepts of 00P before taking the next step with Java. Classes and encapsulation are only part of OOP! [](https://pic1.zhimg.com/80/v2-3233a40c4975925d6cc7f6cec9185356_720w.jpeg)Chapter 5 covers section-part I inheritance. Inheritance allows programmers to use existing classes and modify them as needed. This is fundamental in Java programming. Inheritance in Java is very similar to inheritance in C++. C++ programmers need only focus on the differences between the two languages.Chapter 6 shows how to use Java’s interfaces. Interfaces can take you beyond the simple inheritance model of Chapter 5. Mastering the use of interfaces will give you Java’s full object-oriented programming capabilities. This chapter also introduces a useful technical feature of Java called inner classes. Inner classes make code cleaner and more concise.Chapter 7 begins a detailed discussion of application design. Every Java programmer should know something about graphical user interface programming, and this volume contains the basics. This chapter shows how to make Windows, how to draw in Windows, and how to draw with geometric shapes. How to format text in multiple fonts and how to display images.Chapter 8 discusses the AWr (Abstract Window Tokit) event model in detail. We’ll show you how to write code that responds to events like mouse clicks or keystrokes. It also shows how to handle basic GUI elements, such as buttons and panels.Chapter 9 discusses the Swing GUI toolkit in detail. The Swing toolkit allows you to build a graphical user interface across platforms. This chapter shows you how to create various buttons, text components, borders, sliders, listboxes, menus, and dialogs. Some of the more advanced components are discussed in Volume II.! [](https://pic2.zhimg.com/80/v2-3b71ae2804e06da9d74104b8dd389d5d_720w.jpeg)Chapter 10 explains how to deploy your own application or applets. Here I describe how to package applications into JAR files and how to use Java’s WebStart and applet mechanisms at Intermet. Publish the application on. Finally, it explains how Java programs store and retrieve configuration information once deployed.Chapter 11 discusses exception handling, Java’s robust mechanism for handling unexpected situations in a debugged program. Exceptions provide an effective means of separating normal handling code from error handling code. Of course, even if your program contains functionality to handle all exceptions, it may not work the way you expect. The second half of this chapter provides a number of practical debugging tips. Finally, you will be guided through a complete sample debugging process.! [](https://pic4.zhimg.com/80/v2-a339d6d157daaa67ea281f97080b9c35_720w.jpeg)Chapter 12 provides an overview of generic programming, a major improvement in Java SE 5.0. Generic programming makes programs more readable and secure. Here, I’ll show you how to use strong typing mechanisms instead of unsafe casts, and how to deal with the complexities of compatibility with older versions of Java.Chapter 13 introduces the Collection framework of the Java platform. When you need to collect a large number of objects and retrieve them later, you may want to use collections, which are currently the most appropriate alternative to putting these elements in an array. This chapter shows you how to use a pre-established set of standards.! [](https://pic4.zhimg.com/80/v2-624ae55b2f36b1a25b83f4a6d0139c49_720w.jpeg)Chapter 14 is the last chapter of the book. This chapter introduces multithreading, a feature that allows programs to execute tasks in parallel (threads are the flow of control within a program), and explains how to set up threads and how to handle thread synchronization. Multithreading has improved a lot since Java SE5.0, and this chapter covers all of these new mechanisms.The appendix lists reserved words for the Java language.! [](https://pic4.zhimg.com/80/v2-c0f9960a8032fa5764b5705111ca332a_720w.jpeg)If you need an electronic version of this book
1, follow me, forward + comment
2, private letter to send: [study], you can get
[the Java study, interview, document, video resources free access] (https://link.zhihu.com/?target=https%3A//shimo.im/docs/JT3TVK8PQPtWw9dG/)