Reflect on primitive types...
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Bijay_Kumar
Posted On:   Saturday, April 13, 2002 02:17 PM



I am getting ClassNotFoundException while creating a "Class object" for a primitive type(float). The simple call to
			
Class.forName("float");



returns me exception. In Javadocs, it is mentioned that the call for primitive types is as acceptable.
Any idea what's going wrong?

Re: Reflect on primitive types...

Posted By:   Anonymous  
Posted On:   Saturday, April 13, 2002 03:57 PM

Read the spec carefully... here...

"Therefore, this method cannot be used to obtain any of the Class objects representing primitive types or void. "
About | Sitemap | Contact