I was already in the middle of writing the answer when I saw your second posting ;o) you got it, the beast is called "class literal" and is used any time when you don't want to or can't create an instance to call "getClass()" on it's reference. I was going to ask you want you meant by "static class", but I suppose you meant a class that can't be instanciated (i.e. is declared "abstract" or has a non-public constructor) and can't be subclassed (declared "final") and therefore serves only as a namespace for it's static members (like it is the case with e.g. java.lang.Math) "static" on the other hand, when used with a (nested!) class declaration, means that the class is "nested top level". greetings 2 all
> I found it. It is named "class". i.e. "Object.class.getName()". So close > and > yet the compiler won't even give me a hint. I think jikes may give hints > but > we don't use that. > > James Stauffer > > > -----Original Message----- > From: James Stauffer [mailto:[EMAIL PROTECTED] > Sent: Monday, July 14, 2003 10:33 AM > To: jdjlist > Subject: [jdjlist] Get Class object for static class > > > How can I get the Class object for a static class? I though every class > had > a static member of type Class names something like "CLASS" or "Class" so > you > could do something like "Object.Class.getName()". > > James Stauffer > > > --- > You are currently subscribed to jdjlist as: [EMAIL PROTECTED] > To unsubscribe send a blank email to > [EMAIL PROTECTED] > http://www.sys-con.com/fusetalk > > --- > You are currently subscribed to jdjlist as: [EMAIL PROTECTED] > To unsubscribe send a blank email to > [EMAIL PROTECTED] > http://www.sys-con.com/fusetalk > -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ Jetzt ein- oder umsteigen und USB-Speicheruhr als Pr�mie sichern! --- You are currently subscribed to jdjlist as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] http://www.sys-con.com/fusetalk
