So I can have a variable hold the type of a class, and then later instantiate that class. That's really really wild.
I'm sure C# has this, but I wasn't expecting in java.
Reminds me of .NET...
deanh77May 26, 2006
yeah, not typical, but some things take advantage of that.
For example, In Spring, you configure instances of (typically Singleton) objects in an XML file stating the type and the Spring contain...