Java Training Course       
 
Dr. H. E. Dunsmore
Department of Computer Science
Purdue University
West Lafayette, Indiana 47907-1398
dunsmore@purdue.edu

This page last updated


Textbook: Java How to Program, Fifth Edition, Deitel & Deitel, 2003, Prentice-Hall, ISBN: 0-13-101621-0

Please read each chapter in advance and bring copies of the slides below for reference and for taking notes during class.


Java Documentation
  • Java 2 Platform, Standard Edition v 1.4.1 Overview
  • Java 2 Platform, Standard Edition, v 1.4.1 API Specification
    Monday, June 9, 2003 (Week 1)
  • Chapter 1: Introduction to Java
  • Chapters 4-5: Control Statements
  • Chapter 6: Methods
  • Chapter 7: Arrays
  • Exercises: 4.12, 4.14, 4.25, 5.12, 5.16, 6.25, 6.36, 7.18, 7.27
    Pick out of these exercises several that are most interesting and most challenging to you. Do as many as you can finish in about 3-5 hours of work. This should be a minimum of 4 exercises. Send them to me as email attachments. Email your .java files some time this week to dunsmore@purdue.edu
    Monday, June 16, 2003 (Week 2)
  • Chapter 8: Object-Based Programming
  • Chapter 9: Inheritance
  • Chapter 10: Polymorphism
  • Exercises: 8.2, 8.6, 8.15, 9.6, 9.8, 10.7, 10.8
    Do any five of the seven exercises. Do all seven if you have time. Send them to me as email attachments. Email your .java files some time this week to dunsmore@purdue.edu
    Monday, June 23, 2003 (Week 3)
  • Chapter 11: Strings and Characters
  • Chapter 12: Graphics and Java2D
  • Chapters 13-14: Graphical User Interface Components
  • Exercises: 11.13, 12.13, 13.14, 13.24
    Send these to me as email attachments. Email your .java files some time this week to dunsmore@purdue.edu
    Monday, June 30, 2003 (Week 4)
  • Chapter 15: Exception Handling
  • Chapter 16: Multithreading
  • Exercises: 14.12, 15.21, 15.23, 16.16 (Add the following requirement to 16.16: After each ball hits the edge of the applet for the 25th time, remove that ball from the applet)
    Bouncing Ball applet
    Bouncing Ball Java code
    Send these to me as email attachments. Email your .java files some time this week to dunsmore@purdue.edu
    Monday, July 7, 2003 (Week 5)
  • Chapter 17: Files and Streams
  • Chapter 21: Java Utilities Package and Bit Manipulation
  • Chapter 22: Collections
  • Exercises: 17.10, 21.10, 21.17, 22.11
    Send these to me as email attachments. Email your .java files some time this week to dunsmore@purdue.edu
    Monday, July 14, 2003 (Week 6)
  • Chapter 23: Java Database Connectivity with JDBC
  • Chapter 24: Servlets
  • Chapter 25: JavaServer Pages (JSP)
  • Exercises:
    23.2 a-d (Just write the SQL. Do not write Java code.)
    23.3 a-e (Just write the SQL. Do not write Java code.)
    24.5 (Tell how you would modify the Web application of Figure 24.20 to....) (That is, tell what you would do, but do not actually write the code.)
    25.3 (Just write the JSP page. Do not try to run it.)
    Send these to me as email attachments or in the body of an email message. Email your answers some time this week to dunsmore@purdue.edu
    Additional Material
  • Connection Pooling
  • Java Native Interface (JNI)
  • Overview of the JNI
  • Writing a Java Program with Native Methods
  • Step 1: Write the Java Code
  • Step 2: Compile the Java Code
  • Step 3: Create the .h File
  • Running javah
  • Step 4: Write the Native Method Implementation
  • Step 5: Create a Shared Library
  • Step 6: Run the Program