- Dec 2, 2002
- 1,916
- 0
- 0
Can someone give me a good explanation of how to use Class.forName()? I need to be able to make an object of any arbitrary class.
Originally posted by: m0ti
Class.forName() is used to give you a handle to a Class.
From there you can use reflection to call the appropriate constructor.