|
Help | Solution | API Docs | Expected Output
Prerequisites Skeleton Code
This magercise duplicates what was done in the ClassLoader magercise for JDK 1.1, but uses JDK 1.2's
See the Class Loading course section for additional information.
Perform the following tasks:
In the
URLTester.java skeleton, create an array holding the URL of the file (directory name) specified from the
command line, as
Create an instance of
Next, have the test program load a class whose name will be provided from the command line, also, as
After loading the class, create an instance of it. You can use reflection and the The Tester.java file contains a test class to use for the class loader. The only thing it does is print messages when the class file is loaded and instances are created. Save and compile the file.
If you have a "
Run the
To demonstrate the flexibility of the
The task numbers above are linked to the step-by-step help page. Also available is a complete solution to the problem, and a demonstration of the expected behavior. Copyright © 1998 MageLang Institute. All Rights Reserved. | ||||
|
| ||||||||||||