Home : Course Map : Chapter 1 : Java :
Java Exercises
JavaTech
Course Map
Chapter 1
Introduction
History
What is Java?
Versions
Java 5.0
Features

Java Process
Tools
Documentation
Compatibility
Getting Started
Simple Applet
Simple Application
Starters
Exercises

    Supplements
Interpret/Compile

Making WebPages
Plug-in
Java 5.0 Features
The JVM
Advanced JVMs
Alt. Compilers
Alt. JVMs
Java Deployment

     About JavaTech
     Codes List
     Exercises
     Feedback
     References
     Resources
     Tips
     Topic Index
     Course Guide
     What's New

Completion of the following simple exercises will insure that you have successfully installed your JDK and know the basic mechanics of creating source code files (i.e. the *.java files), compilation, creating applets and running applications.

  1. Create your own applet that gives a message with your name, e.g.
    " Hello World, my name is John Doe".

  2. Create your own application program that prints out your name to the command line.

Note: The source code file name and the class name must match exactly in upper and lowercase or the compiler will complain. For example, the file for the HelloWorld class file must be HelloWorld.java. If you name it helloWorld.java it will not compile.

 

            Tech
Java in Science
    & Engineering
Benefits
Shortcomings
RealWorld Examples

           Physics
Java in Physics
SimulationTypes
Simulate&Analyze
Sim. in Experiments
  Demo 1: Event
  Demo 2: Continuous
  Demo 3: Static

Learn by Coding
Exercises

  Part I Part II Part III
Java Core 1  2  3  4  5  6  7  8  9  10  11  12 13 14 15 16 17
18 19 20
21
22 23 24
Supplements

1  2  3  4  5  6  7  8  9  10  11  12

Tech 1  2  3  4  5  6  7  8  9  10  11  12
Physics 1  2  3  4  5  6  7  8  9  10  11  12

Java is a trademark of Sun Microsystems, Inc.