Essentials of the Java programming language: a hands-on guide

The book is a tutorial that walks you through how to use the Java 2 Platform software to develop a basic network application that uses Java 2 Platform features. The book is organized into fourteen lessons: 1. Compiling and Running a Simple Program: Gives a word about the Java Platform, setting up your computer, writing and compiling a program, interpreting and running the program, code comments, API documentation and setting the CLASS-PATH environment on a Windows platform. 2. Building Applications: Provides an understanding of the structure and elements of an application, fields and methods and con-structors. 3. Building Applets: Converts one of the applications from the previous lesson to an applet, describes the structure and elements common to applets, and shows you how to use the appletviewer tool. 4. Building a User Interface: This lesson adds a user interface to an application developed in a previous lesson. It is a very basic introduction to the Java Foundation Classes (JFC) Project Swing APIs. 5. Building Servlets: This lesson shows you how to create a very simple browser-based HTML form that invokes a basic servlet to process user data entered onto the form, and concludes with showing you how to convert the servlet to use JavaServer Pages (JSP) technology. 6. File Access and Permissions: This lesson expands the applet, application, and servlet examples from the previous lessons to perform basic file access using the APIs in the java.io package. The lesson also shows you how to grant applets and servlets permission to access specific files only. 7. Database Access and Permissions: This lesson converts the application, ap-plet, and servlet examples from the previous lesson to write to and read from a database using JDBC. 8. Remote Method Invocation: This lesson explains how to use the Java Remote Method Invocation (RMI) API to establish client and server communications. 9. Socket Communications: Explains the use of sockets and the use of threads in a server program to field simultaneous requests from multiple client programs. 10. User Interfaces Revisited: This lesson takes the RMI application from lesson 8, creates a more involved user interface and data model, and uses a different layout manager. These changes give you the beginnings of a very simple e-commerce application that consists of two types of client programs: One lets users place purchase orders, and the other lets order processors view the orders. 11. Developing the Example: This lesson shows …