Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Feedback on: irt.org FAQ Knowledge Base Q4054

irt.org | About | Feedback | 556 [ previous next ]

Feedback on:
irt.org FAQ Knowledge Base Q4054

Sent by
Robert MacNeill on November 02, 1999 at 11:26:02:

Technical:
Just right

Comments:
It is indeed possible to make use of a class with a Java application that does not exist at runtime - use:

Class.forName( myClass ).newInstance()

where myClass is the classname and package of the class in question. This is useful for specifying classes that implement an interface.






Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 21st December 2007. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.