Java 5 & Java 6 Tutorials

Interested in training from the author of these tutorials? See the upcoming Java 6 programming courses in San Francisco and Maryland or contact hall@coreservlets.com for info on customized courses onsite at your location.


These tutorials are derived from Marty Hall's world-renowned live Ajax and Java EE training courses, and have been tested by Marty in live training courses in the US, Canada, Australia, Puerto Rico, Japan, Mexico, and the Philippines. Click on a topic below to get the detailed tutorial, download the source code, or try out exercises on the topic. The training materials home page has tutorials on many other Java-related topics. The PDF versions of the tutorials are freely available to anyone for personal use. As a courtesy, we also make the original PowerPoint slides available to university faculty for no charge. See the J2EE instructor materials page for details.

To arrange a Java-related course at your organization based on these materials, contact info@coreservlets.com. These courses can be customized to use any combination of the materials on the J2EE tutorials site, and new materials can be added for specific client needs. To learn more details about the instructor, the curriculum for the live training courses, or the public course schedule, please see http://courses.coreservlets.com.

If you find these free tutorials helpful, we would appreciate it if you would link to us. Send corrections or feedback on any tutorial to hall@coreservlets.com.


Introduction to and Overview of Java

Basic Java Syntax

Basic Object-Oriented Programming in Java

Object-Oriented Programming in Java: More Capabilities

Applets and Basic Graphics

More Java Syntax and Utilities

Asynchronous Event Handling

AWT Components: Simple GUIs

Layout Managers

Java 2D

Basic Swing

Advanced Swing and MVC

  • This tutorial section in PDF.
  • Topics covered:
    • Building a simple static JList
    • Adding and removing entries from a JList at runtime
    • Making a custom data model
    • Making a custom cell renderer

Multithreaded Programming

Multithreaded Graphics and Animation

Network Programming - Clients

Network Programming - Servers

Network Programming and Object Serialization

XML Parsing and DOM

Servers and Forms

For more details, see the Tomcat setup guide and the servlet and JSP tutorials.

  • This tutorial section in PDF.
  • Topics covered:
    • Sending data from forms
    • The FORM element
    • Text controls
    • Push buttons
    • Check boxes and radio buttons
    • Combo boxes and list boxes
    • File upload controls
    • Server-side image maps
    • Hidden fields
    • Grouping controls
    • Tab ordering

Servers and Applets

  • This tutorial section in PDF.
  • Topics covered:
    • Sending GET data and having the browser display the results
    • Sending GET data and processing the results within the applet (HTTP tunneling)
    • Using object serialization to exchange high-level data structures between applets and servlets
    • Sending POST data and processing the results within the applet (HTTP tunneling)
    • Bypassing the HTTP server altogether

Java Web Start and Deployment Options

Invoking OS-Specific Programs and Native Methods

HTML 4: A Crash Course

The HTML sections are not specific to Java, but basic knowledge of HTML is useful for practically everyone, and both servlets and JSP and Ajax require pretty extensive knowledge.

XHTML: A Crash Course

Again, the HTML sections are not specific to Java, but basic knowledge of HTML is useful for practically everyone, and both servlets and JSP and Ajax require pretty extensive knowledge.

Introduction to HTML Frames

Again, the HTML sections are not specific to Java, but basic knowledge of HTML is useful for practically everyone, and both servlets and JSP and Ajax require pretty extensive knowledge.

  • This tutorial section in PDF.
  • Topics covered:
    • Advantages and disadvantages of frames
    • FRAME template
    • Defining rows and cols in a FRAMESET
    • Common FRAME and FRAMESET attributes
    • Nested frames
    • Targeting a document to a named FRAME cell

New Features in JDK 1.5

All the material in this section is covered in more detail in earlier sections. But, if you are a real old-timer and only know Java 1.4 or earlier (Gasp! How 20th century!), this section might be useful for you.

  • This tutorial section in PDF.
  • Topics covered:
    • The for/each loop
    • Scanner and command-line input
    • Generics
    • Autoboxing
    • Varargs
    • printf
    • Reading command-line input

More Information

Java

Servlets & JSP

JSF
Ajax, GWT, & JavaScript

Spring, Hibernate, & JPA

Struts