thanks for reply, My problem is like that suppose i am having a class from which i am getting an object but i don't what is data type of member variables. I wanted to know the data type of member variables.
Joined: Mar 22, 2005
You mean the method returns a java.lang.Object? You can get at the class name through obj.getClass().getName() - that'll return the fully qualified class name.
You can also check for particular classes as follows:
Joined: Nov 08, 2007
A major point of Object-Oriented programming is that you DON'T know the types of the instance variables.
the Java introspection APIs could help you out, but you should probably be solving your problem in some other way,
if you want more detailed answers, provide an example of the problem you are having,
Bill Shirley - bshirley - frazerbilt.com
if (Posts < 30) you.read( JavaRanchFAQ);