Have a look at the getClass() method and the Class.getName() method.
kind regards,
Jos
yes..Jos.. Class.getName() ll return name of the class.. i ll put you in other way
I'm having one Java Vo class.In that I'm having fields like "FirstName" and "LastName".Also contains set and get() method for those 2 fields..
ok? Till this its clear rite..
Form another Class i'm accessing getlastName() it ll return the "LastName" value rt..
What i need is both the "LastName" Field value and Field name..(i.e ,LastName).
You consider like "Field names are unknown to you" only set() and get() methods are known to you..
you got my point?
-Thanks & Regards,
Hamsa