• Post Reply Bookmark Topic Watch Topic
  • New Topic

Is there any way with which i can view entire contents of an object(instance members)  RSS feed

 
Waez Ali
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I just wanted to know,how can we view the contents of an object(Instance members) ,Is there any function in java with which we can do that.???

Please let me know...

Thanks
 
Steven Bell
Ranch Hand
Posts: 1071
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you mean you want to see the Object while a program is running for debugging? View an Objects private members? Get a list of an Objects methods? Maybe a little more detail on what you are trying to do would help with an answer.
 
Keith Lynn
Ranch Hand
Posts: 2409
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use java.lang.Class
 
Waez Ali
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Lynn,
Actually I wasn't familiar with java.lang.Class
It contains all those methods.

Thanks.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!