Table of Contents
(NOTE: Each chapter concludes with a Summary.)
1. Java and The Internet.
The Java programming language.
The evolution of browsers.
Running Java applications and Java applets.
What you will learn from this book.
A note on exercises and SAQs. 2. Objects.
Some examples of object-based systems. 3. Classes and Objects.
Class libraries. 4. Java.
Control structures. 5. Classes in Java.
Objects and references.
The class hierarchy.
General classes and constructors.
A running example. 6. Exceptions.
Defining and throwing exceptions.
Creating your own exceptions.
Exceptions in action-a data structure for a Web crawler.
Extending the running example. 7. Libraries.
The documentation of packages.
The java.util package.
Two useful data structures.
The Object class and object wrappers.
Further extension of the running example. 8. Abstraction Mechanisms.
A further extension to the running example. 9. Threads.
Suspend and resume methods.
The problem with shared objects.
The circular buffer. 10. Input and Output.
Some important streams.
The StringTokenizer class.
Revisiting the running example. 11. Hci and Java.
Overview of the AWT.
Containers and layouts.
The event system.
Some examples. 12. Applets.
Introducing some essential applet methods.
Drawing and handling events.
Using threads in applets.
Adding an interface to the applet.
Another example applet.
Adding HCI to the running example. 13. Network Programming.
A tour of the package.
The common protocol.
Writing a server.
Writing an applet.
General considerations. 14. Applications.
The application life cycle.
Differences between applets and applications.
Adding user interface elements to applications. 15. Database Access.
Connecting to SQL databases.
Java and SQL. Appendix A. The Java Development Kit.
Running Java code.
Other JDK tools.
HTML tags. Index.
Programming the Internet with Java is designed to teach students how to program in Java - in particular those concepts that relate to the burgeoning arena of Internet technologies. It assumes previous knowledge of programming in a procedural language such as C or Pascal, and begins with an introduction to Java and the basics of object oriented programming. It progresses onto classes, exceptions, libraries and threads and teaches the skills to develop complex Java code. Further chapters then go on to apply these lessons to Internet programming requirements so that by the end of the book, the student will be familiar with the fundamentals of network programming and database access as well as skilled at developing applets and applications. Features:
- Numerous programming examples drawn from appropriate Internet technologies such as firewalls, log files and web crawlers
- Self assessment questions guide the student through the book and measure progress
- Boxed-out definitions of important Internet concepts
- Teaching material (slides and solutions) available online.
Supporting web site is available for downloading and contains code, exercises (available shortly), multiple choice self-assessment test applets, Java 1.1 updates and links to other useful sites.
About Darrel Ince
Darrel Ince is Professor of Computing at the Open University. He is an accomplished author of more than 100 research papers and 18 books on software subjects, as well as a frequent contributor to numerous magazines and national newspapers.About Adam Freeman
Adam Freeman is a software consultant working in the Knowledge Media Institute at the Open University. He is a member of the team developing Stadium, one of the largest Java applications in the world, and is an Advisor to the Board of SunWorld Online.