Pages

Source code to get class object ???

*******************************************************
COMPLETE SOURCE CODE FOR : GetClassObject.java
*******************************************************


public class GetClassObject
{
public static void main(String[]args)
{
try
{
//This program will get class object for Object class
Class a=Class.forName("java.lang.Object");
}
catch(Exception exception)
{
exception.printStackTrace();
}
}
}


*******************************************************
JUST COMPILE AND EXECUTE IT
*******************************************************
Related Posts Plugin for WordPress, Blogger...