Hi,
Welcome to
Java Ranch!
Well, singleton classes are usually designed to make this hard! There are tricks you can play with class loaders -- a class can be garbage collected when the class loader that loaded it is collected -- but this is really outside the Java language itself and subject to external control (i.e., switches passed to the JVM.)
Why don't you tell us in a bit more concrete detail what you need to do?
[Note to Rom Chaterjee: Math isn't a singleton; it's just a class with all static methods and no public constructor. I don't know if there's a name for such a class (a Zero-ton?), but it's not a Singleton; a Singleton class is a class of which one and only one instance can exist.]
[ August 27, 2003: Message edited by: Ernest Friedman-Hill ]