The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
July 2000



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.


RE:Class Name

Posted by Kishori Sharan on July 31, 2000 at 8:20 PM

Can you please explain your problem with an example? If you are intending to write a generic static method in a class so that it will be inherited then you always have the class name or the object of that class using which you will call that static method. If you have class name then you can use Class.forName ( "yourclassname" ) to get an object of class "Class" for your object. You can use the same method forName () within the static method too to get the Class object. I think this is not what you want. Please explain the situation in which you want this kind of functionality.


  • CLASSNAME IAIN August 07, 2000 at 9:44 AM (1)
    • ClassName Mahesh August 29, 2000 at 9:19 PM (0)

Sponsored Links

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