
Hi, I want to create a 1 class,and declare some methods there.I need to method must returns a classname.when i call that particular method(which returns a class),how can i access that member variables of that class using that method.......plz do the needful.

import java.lang.Class;
public class RoseIndia
{
public RoseIndia(){
System.out.println("Constructor Called");
}
public static void main(String args[])
{
RoseIndia roseIndiaObject = new RoseIndia();
System.out.println("Object's Class name =>"+
roseIndiaObject.getClass().getName());
}
}
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
