The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
July 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

WHAT'S MY CLASSNAME???

Posted by IAIN on July 31, 2000 at 2:14 PM

How can I get a static instance of my class on which to call .getname() ? My goal is to retrieve a String of the class name, but I can't use this.getClass().getname() since 'this' is non-static and my method IS static! Or I'd take any other command anyone knows to retrieve the name of the current class from within a static context. THANX



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us