Well there are 2 types of uses for wrapper classes.
First type:
Classes that wrap primitives. These are classes that are taking an int and making it an Integer. Or taking a float a Float. This may give you certain abilities like converting a
String to an int or an int to a String as well as other functions.
Second type:
Wrapper classes are also used to simplify. Imagine you have some very complex classes that do many things. Say... HTTPUnit. HTTPUnit has some very powerful things you can do with it. However the issue might be that it may be too complex for your needs. You may be able to create a wrapper class to simplify the code to pull out only what you need and hide other complexities. This is exactly what JWebUnit has done. JWebUnit is basically a bunch of wrapper classes for HTTPUnit. It really doesn�t add functionality. It just simplifies it.
There really is no such thing as a static class. There are static methods in a class and there might be static variables attached to the class, but no such thing as a static class. When you hear static think ONE. There is only ONE instance of the static item. That static item will always be attached to the class. If its a static method, then that method is the only one in existance. If its a static variable, then that variable is the only instance.
Try checking out singletons.
Hope that helps.
[ May 26, 2004: Message edited by: Dale DeMott ]